2

So I've setup multiple views for my website, but the thing is, when I change store views, the URL ends up looking like this:

https://www.domain.com/shop/product1.html?___store=english&___from_store=hindi

I'd like to be like:

https://www.domain.com/shop/product1.html

Any suggestions on how to do this?

P.S. I have set the option to 'add code to the URL' as No.

  • which magento version have you used ? – Dharmendra Jadav Sep 25 '18 at 7:39
  • @DharmendraJadav 2.2.5 – Fokker Sep 25 '18 at 7:41
  • Did you remove generated and var folder? – Rohan Hapani Sep 25 '18 at 7:45
  • @RohanHapani I have mutliple views. I need my website in english and hindi, and I need to be able to switch between them. The URL changes only when I switch views. Not sure how deletion of var and generated folders would help? But if it does, do tell. I'd like to know. – Fokker Sep 25 '18 at 7:47
  • Please run command "php bin/magento indexer:reindex" and then clear cache than after check. – Dharmendra Jadav Sep 25 '18 at 7:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.