-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original url destinations like experiment detail page will not redirect to home after login #1143
Original url destinations like experiment detail page will not redirect to home after login #1143
Conversation
…ry you to your original destination when clicking on a shared link
user: null, | ||
googleCredential: null, | ||
redirectUrl: '/home', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to set any attributes (besides redirectUrl
) here, to test that they get set to the default values when clearState
is called? The other two attributes in 'settings', for instance, aren't set here. If we do set them, it might be a more definitive test if they're initially set to different values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i updated the specs to make this a little more explicitly tested
@@ -25,6 +32,13 @@ describe('clearState', () => { | |||
toCheckAuth: null, | |||
toFilterMetric: null, | |||
}, | |||
auth: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the 'it' string read 'should reset settings and auth state...'?
#1137
Most routes will redirect to
/home
if you click on a shared url such as an experiment detail page like/home/detail/abc123...
because the original destination url gets lost after navigating to/login
.This should allow one to open up a shared link, login if needed, and return to the intended destination page.