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

PHPBB3-9576