inpsyde / multilingual-press

The multisite-based free open source plugin for your multilingual WordPress websites.
https://multilingualpress.org/
GNU General Public License v3.0
234 stars 38 forks source link

?noredirect parameter is missing when redirect feature is active #174

Closed nullbytes closed 8 years ago

nullbytes commented 9 years ago

In version 2.1.2 we added the ?noredirect parameter to every link on quicklinks and the language widget. In 2.2.3 the parameter is missing, and if the redirect feature is active, you get redirected to the page you was just leaving.

Example:

  1. Location: /de/unternehmen/
  2. Click on link to: /en/company/
  3. Redirect to: /de/unternehmen/?noredirect=de_DE

More information: https://wordpress.org/support/topic/back-redirection-after-switching-the-language?replies=4

dboune commented 9 years ago

I am seeing odd behavior here as well. I have a live example, but would need to email someone directly about it. If interested please contact me via email with the user of dboune, and the domain of gmail.com. I will send you the domain, along with my own repro instructions. Three linked languages, with redirect.

Edit: Additionally, if I disable redirect for the language sub-sites, users of those languages can no longer view the main domain, because the noredirect query argument is not added to the language switching links while viewing the sub-sites. Users can of course switch to other sub-sites which also have redirect disabled.