distinguish href location after login and logout