[ticket/9576] Redirect after login/logout if page is viewforum or viewtopic

PHPBB3-9576