S
S
sergeyviktorovich2021-05-24 21:24:16
1C-Bitrix
sergeyviktorovich, 2021-05-24 21:24:16

How to redirect to the office after authorization in the aspro?

after authorization, the user remains on the same page, how to redirect him to the office

inserted the code into the init php did not transfer

<?php

AddEventHandler("main", "OnAfterUserAuthorize", array("CMainHandlers", "OnAfterUserAuthorizeHandler"));

class CMainHandlers 
{
    function OnAfterUserAuthorizeHandler($arUser)
    {
      $path='/cabinet/index.php'; //путь к тестам
      LocalRedirect($path);
    } 
}
?>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question