Jump to content

ps_languageselector module does not redirect correctly on mobile


Recommended Posts

Hello, on an installation of PS 1.7.1 we have noticed that the module 

ps_languageselector

on mobile view just redirects to the desired language homepage.
I think that the correct vehaviour would be to send you to the equivalent page of the one you were visiting for the chosen language.

I can't seem to find the code where the redirect logic is. Anybody has tackled with this problem already?

Edited by cleoni (see edit history)
Link to comment
Share on other sites

  • cleoni changed the title to ps_languageselector module does not redirect correctly on mobile

Hello, I am using a custom theme, but I lately found out myself.

The language selector for mobile is implemented in my theme as a form with a SELECT field, and the target url for each language is coded into the VALUE attribute of the select field. The code is somewhere in Presta core logic I guess, but once you put the correct url in the value, everything works.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...