Added fallback for dispatching after login when url has a hash