• Resolved hampton3019

    (@hampton3019)


    Hi there,
    I use WPML to translate my website
    website.com/en/ for English, /fr/ for French etc.

    For some reason, since doing so, pretty links gets the root folders wrong
    instead of website.com/en/pretty-link the links are now website.com/en//pretty-link

    The double “//” seems to come from an updated setting in WPML (which can’t be changed). Pretty-links is missing a feature to simply adjust the root URL if parsed wrong. Or a line of code to actually make sure a double “//” isn’t occurring.

    It’s nerve-wracking since all my current links now broke ^^

    Would be great if someone could look into it and maybe just fix it with a line of code or two. It’s a simple but easy to reproduce issue.
    Thanks,

    Hampton

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Caseproof LLC

    (@caseproof)

    Hi

    Can you confirm if you are on the latest version of Pretty Links 3.1.1? We added a fix for WPML in the latest version.

    If you are already on 3.1.1, can you go to Settings – General and just click Save Changes, then go to Settings – Permalinks and click Save Changes, then check if the links are working again?

    Let me know if this doesn’t fix the problem.

    Thread Starter hampton3019

    (@hampton3019)

    Hi,

    rewriting htaccess via the settings does the trick for now. The WP root is correctly detected as domain.com without the /en/ – just as it should be. I am on the latest version, however, the rewrite was needed for fixing.

    I am also troubleshooting with WPML support right now since it seems WPML is breaking the htaccess file frequently in the latest version on random occasions when sites update (or even css updates). For now I am not sure how stable the fix is but it is working.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug causing double “//” in URLs’ is closed to new replies.