Why does my website switch to English when using the search bar?

Why does my website switch to English when using the search bar?

SimonDewaele
Excursionist
19 0 1

Hi All,

 

Can anyone help us out? When using the searchbar on our store, the entire website switches back to English.

 

So to replicate the issue, set language to "Netherlands", then submit a search, it switches everything back to English. Anyone has an idea on how we can solve this?

 

Thanks a lot!

Simon

Co-Founder of GIMMY
Replies 4 (4)

Guleria
Shopify Partner
3963 792 1126

Hello @SimonDewaele ,

 

You have to check the action of search form and the href of 2 links you have with search bar.

actions should be {{ routes.search_url }}
and href URLs should be routes compatible
https://shopify.dev/api/liquid/objects/routes

Thanks

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
SimonDewaele
Excursionist
19 0 1

Hi, super thanks for the feedback. 

 

I'm not that accustomed to coding (also not in liquid). Could you give me a bit more insights in how to find this in the code, and how to possible edit?

 

Thanks a lot @Guleria ,

 

Simon

Co-Founder of GIMMY
folifolia
Visitor
1 0 0

Hi Simon,

 

Did you find a solution for this issue? I have the same problem and I can't seem to fix it.


I'm also new to coding or whatever so a simple answer would be much appreciated 🙂

Anyone?

 

Thanks in advance!

SimonDewaele
Excursionist
19 0 1

Hi there,

 

Still have the issue here, just forgot about it actually...

 

Let me know if you find a solution! I searched a lot and didn't unfortunately.

 

Cheers,

Simon

Co-Founder of GIMMY