• IF you have a GET value on the end of the root domain URL then the automatic redirect does not work e.g.

    https://ajo.casa (redirects to the language url)
    https://ajo.casa?asdasdas (does not redirect, it just shows the default language without redirecting)

    This is especially an issue as sites like facebook add a bunch of GET values to all links and so a link to the root domain ends up with the user seeing the homepage without the language URL. Might even cause a dupe content issue.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    This is not a bug, but the default behavior of WordPress. Deactivate all your plugins and https://ajo.casa/?dsfsdfsdf. It should display your homepage without redirect.

    Thread Starter spindreams

    (@spindreams)

    Yes I understand that without polylang installed the default action of WP would be to show the homepage but Polylang is meant to override this and redirect the user to the language sub-folder. I don’t see why just because there as a GET on the URL that Polylang decides not to do the redirect that it would do without it?

    Plugin Author Chouby

    (@chouby)

    We can’t do that because it would break a lot of plugins which do specific actions when GET parameters are added to the site main url. Nowadays, it would be better to used REST API endpoints, but the REST API has not always existed in WP, so there are still lot of plugins which use the “home” page as an endpoint.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BUG report: Not redirecting from root if URL has GET value’ is closed to new replies.