I have 2 stores on my Magento 2 website. one for Srilanka & the other for Australia. I am redirecting my customers based on customer's IPs to relevant sores. Whenever I am redirecting the customer to an Australian store, I am getting the URL like below
https://staging.mywebsite.lk/aus/?___from_store=default
After going through the product page and category pages URL is appearing without /?___from_store=default
I tried 302 redirects using htaccess file like below. But no luck.
Redirect 301 /aus/?___from_store=default https://staging.mywebsite.lk/aus/
This is happening only on the home page. How can I remove this from my url? please help to short this out.