The problem is that if I go to my cart while I’m on site.com/de, it goes to site.com/cart instead of site.com/de/cart. I want the de, en, fr or whatever the language selected to stay as is.
I want to change the url for the Go to Cart button on my minicart
From site.com/cart to site.com/en/cart if English is the current language selected.
Hi @edelfc44 clarify:
- is it when you enter the url site.com/de you are redirected to site.com/cart
- Or there is a button that you click that goes to site.com/cart even when your url is site.com/de?
If #2 the button code needs to be localized to use Locale-aware urls:
https://shopify.dev/themes/internationalization/multiple-currencies-languages#locale-aware-urls
Do you know if there’s a short code that I can put inside the href tag?
Something like {{ request.locale.iso_code }}