Answer the question
In order to leave comments, you need to log in
When changing the language, does it redirect to the main page of the site?
Good day! The following task arose before me:
There is a 3-language site on Bitrix, and when changing the language, it redirects to the main page. Example:
from site.ru/ru/about.php to site.ru/en
who may have encountered this problem, please help to solve it!
Answer the question
In order to leave comments, you need to log in
I have not encountered Bitrix, but I think you need to find a piece of code responsible for changing the language, there probably is header('location: /');
Replace it with header('location: ' . $_SERVER['REQUEST_URI']);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question