* fix redirect to app page after login by showing respect to the pathname