S
S
SRG942016-02-18 13:04:34
PHP
SRG94, 2016-02-18 13:04:34

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

1 answer(s)
A
Alexey Arkh, 2016-02-26
@AlekseyArh

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 question

Ask a Question

731 491 924 answers to any question