cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Changing URL based on the language selected.

Former Member
0 Likes
366

The question is raised several times here, but there are no answers. I face the same issue with my website and I need a help of experts. If I access my webstore first time, I have a proper session with the main language selected (example.eu/se/) for Swedish. After I change the language in the language selector, the URL changes accordingly (example.eu/en/ ). However, next time if I switch back to the main language (Swedish), the URL would stay the same as it was previously (example.eu/en/ ).

  • I have checked the URL Encoding Attributes and in my case I have only language as an attribute.

  • My spring.xml configuration for urlEncoder.

                   <map>
                         <entry key="currency" value-ref="currencyAttributeManager"/>
                         <entry key="language" value-ref="languageAttributeManager"/>
                         <entry key="storefront" value-ref="storeFrontAttributeManager"/>
                     </map>
    
    

Example of my url pattern:

  1. (?i)^https?://[^/]+(/[^?])?\?(.\&)?(site=Store_se)(|\&.)$*

  2. (?i)^https?://store-..example.se.$

Thank you for the help!

Accepted Solutions (0)

Answers (0)