Checkout to homepage wrong redirect url
-
Hello we use CheckoutWC and we find something strange not user friendly, when user is on the checkout he is redirected to the base country homepage and not taking into consideration his country.
Base country is UK
And we have NL has another country.
When NL user are on the checkout site.com/nl/checkout/ and they click on the logo, the logo point to site.com/ and not site.com/nl/
We want to know why ? Can u explain how to set this or maybe do an update ?
We kindly ask CheckoutWC developers if it was their responsability and that’s the reply they give today :This is the code that determines where the logo links to:
$url = apply_filters( ‘cfw_header_home_url’, get_home_url() );
I’m surprised that polylang isn’t filtering the home URL, or detecting the user’s language and redirecting to the language specific version.You could add your own filter on cfw_header_home_url
But I would ask Polylang how this is supposed to work – if we are doing something wrong we are happy to make a change.
CheckoutWC developer reply to this problem
- The topic ‘Checkout to homepage wrong redirect url’ is closed to new replies.