Fixed wrong redirection by menu item

An attempt to fix issue #4934 

#### Steps to reproduce the issue

1. create an article for registered users only,
2. create a menu item to aforementioned article,
3. go to the front-end of the site and log in,
4. access the article through the menu item,
5. log out,
6. click menu item.

#### Expected result
Get error explaining I'm not authorized to access the article since I'm not logged in.

#### Additional Information

Problem seemed to only be happening with Firefox.

Make sure to use an incognito/private browsing window to ensure that neither cookies nor the cache will affect the testing.

If you try accessing the article without ever having logged in, you'll get what was described in the "Expected result" section, so it's the logging in that's causing this behaviour after logging out.