-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Use history mode in Vue Router for better redirects after login for deep links #876
Comments
Iirc, if you don't protect the static assets (ie |
This is not necessary if the requested content-type is correctly considered, so that the html is not delivered for the json-requests.... |
@asibross I'd be happy if you could test one of our snapshot versions... |
Hey @joshiste, thanks for merging. I see that this is part of the 2.2 release. I currently don't have a stable version for our internal solution with 2.2. I will try to get something this week, so I will be able to test it. |
I am using Spring boot 2.0.2 and have OAuth 2 configured.
When trying to access an instance page directly (when I am not yet authenticated), I am correctly redirected to the login page, but when authentication is complete I am not being redirected to the initial instance page but rather to the main page (applications list).
I believe the reason is the way Vue Router is configured (by default it uses
hash
mode).https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations
In
hash
mode the server is not aware of the actual path (after #), so the final redirect just points it back to the root path.This could be addressed by:
The text was updated successfully, but these errors were encountered: