-
Notifications
You must be signed in to change notification settings - Fork 348
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
Redirect not working upon login #6900
Comments
@rithviknishad Can you assign this to me? const getRedirectURL = () => {
return new URLSearchParams(window.location.search).get("redirect");
}; The problem is probably the getRedirectURL function which always returns null |
@rithviknishad This is a code design decision seems like the component expects an extra ?redirect= param at the end of string to redirect to, This isn't needed since the login page is shown on the same url that the user intends to go to. One way would be to redirect to the login page with a redirect param or another easier way might be to just use current url and just redirect to that after login. |
The second approach sounds good! |
Great! I'll get to it |
* Fixes redirect not working upon login fixes #6900 * Add cypress tests
Describe the bug
If a user is logged out and they go to a specific URL directly, they are not landing on that URL after login.
To Reproduce
Steps to reproduce the behavior:
Tasks
The text was updated successfully, but these errors were encountered: