[ticket/469] Check current page with get_current_url()
The current session page seems to be wrong on the first page access. B3P-469
This commit is contained in:
@@ -118,7 +118,7 @@ class listener implements EventSubscriberInterface
|
||||
return;
|
||||
}
|
||||
|
||||
if (strpos($this->user->data['session_page'], '/portal') === false)
|
||||
if (strpos($this->controller_helper->get_current_url(), '/portal') === false)
|
||||
{
|
||||
$portal_link = $this->controller_helper->route('board3_portal_controller');
|
||||
$this->display_portal();
|
||||
|
||||
Reference in New Issue
Block a user