Closed zegkljan closed 2 years ago
i’ll look at this today.
Hi in langswitcher.php to fix it is necessary to add a condition to the while cycle pf the function _getTranslatedUrl
while ($max_recursions > 0 && $current_node !== null && $current_node->slug() != 'pages' && $path != 'pages') {
$current_node !== null
I got the same problem and I fix it in this mode so the page return a 404 error in the right mode
Good call.. i've used your solution
When I go to a page that does not exist, instead of 404 page, I'm greeted with an ugly error caused by langswitcher: