[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:
Marc Alexander
2015-02-12 22:25:15 +01:00
parent a50e6c04d0
commit f2b002c49b

View File

@@ -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();