Open am3000 opened 3 years ago
I had a similar problem with the language switcher on the non-default language Woocommerce shop page only.
The switcher leading to the default language shop pointed to "http://shop/".
Adding the below code in the function translateShopUrl()
in src/Hyyan/WPI/Pages.php will fix the issue.
if ( is_shop() ) {
return $result;
}
Woocommerce 5.9.0, Hyyan 1.5.0
Hey there,
on the search page the language switcher links are broken.
Also see this support question from another user: https://wordpress.org/support/topic/search-page-error-2/
I investigated and saw that it is caused by Pages::translateShopUrl()
I suggest to add
after
$result = $url;
to fix this outside of the plugin this workaround should do it: