Fixes #2246 Logout link broken on "Access Denied" pages