• Resolved oshevans

    (@oshevans)


    I am using WPML’s ‘Menu language switcher’.
    The lang button will add a lang=en querystring value to the URL.
    e.g. {domain}/index.php/login/?lang=en

    If I’m on the profile page (UM User), this lang button is corrupted
    {domain}/index.php/profile/?lang=enmynameexample-com/

    UM is adding this to the URL: mynameexample-com/

    It shouldn’t be adding anything to the index.php/profile URL anyway, but especially not after the querystring.

    Any configuration tips or known workarounds for this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter oshevans

    (@oshevans)

    WPML Multilingual CMS – Version 4.4.12
    Ultimate Member – Version 2.2.4

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @oshevans

    You will have to use a special version of Ultimate Member.

    Please see this doc:
    https://docs.ultimatemember.com/article/1449-how-to-translate-plugin#switch

    Regards,

    Thread Starter oshevans

    (@oshevans)

    Thank for the info and link @champsupertramp.

    The info mentions that they “…recommend using the plugin WPML”, and only if we “…use the plugin Polylang … you should install a special version of the plugin Ultimate Member”

    So you are suggesting that we should use this special version regardless of us already using the recommended WPML plugin?

    Just wanted to clarify.

    Thanks again.

    Thread Starter oshevans

    (@oshevans)

    Hi @champsupertramp,

    OK, I’ve updated the UM plugin with the code from the repo, but nothing has changed.
    I’m still getting the messed up URL.

    I also noticed that if I access the correct URL directly, it gives me a re-direct loop error… not sure if that is related, or a separate issue.
    {domain}/index.php/profile/?lang=en

    Many thanks.

    Thread Starter oshevans

    (@oshevans)

    Hi @champsupertramp,

    Still having these issues.

    I’ve temporarily changed wpml to use domains for different langs, but will need to revert to qstring at some point.

    Looks like I’m gonna have to find an alternative solution that is more compatible with wpml.

    Anyone have any suggestions?

    Cheers.

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @oshevans

    Sorry for the delay, could you contact me via [email protected]?

    Best Regards!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @oshevans

    ..Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help… ??

    Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WPML lang button UM adding username after querystring’ is closed to new replies.