[bug][33730] 404 error on login redirection from category list view and unauthorized links. Fixes #3979