V
V
Vadya Tim2018-03-02 14:06:35
1C-Bitrix
Vadya Tim, 2018-03-02 14:06:35

How to solve this issue with Bitrix?

Good afternoon!
Accidentally discovered an issue that appears on the Login page.
Description:
Being on the main page, when we click on "Login" we get to the login page, but the url of the page is not quite normal:
https://my.site.ua/auth/?backurl=/index.php
I need to the login page was accessible only by one url:
https://my.site.ua/auth/
I understand that it is possible to register a redirect from a duplicate to the main one, but there is a problem of the following nature:
When switching from the login page: https://my. site.ua/auth/?backurl=/index.php, to the registration page and back to the login page, we get a completely different url address of the login page:
https://shop.venbest.ua/auth/?backurl=/auth /index.... .
Characteristically, every time we go from the "login" page to the "registration" page, each time we get a new and new url of the "login" page. Example:
https://shop.venbest.ua/auth/?backurl=/auth/index....
I.e. for some reason, with each transition, the following is automatically added to the address: 3D%2Fauth%2Findex.php%3Fbackurl%3D%2.
Please help me to solve this problem.
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Skibin, 2018-03-02
@megafax

Being on the main page, when you click on "Login"

Those. there the GET form will be sent? You put back in the hidden input in your form - remove it, since you don't need it.

V
Vadya Tim, 2018-03-03
@tiim07

Vladimir Skibin
<?if (strlen($arResult["BACKURL"]) > 0):?>
" />
<?endif?>
<?foreach ($arResult["POST"] as $key => $value): ?>
<?endforeach?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question