-
Notifications
You must be signed in to change notification settings - Fork 53
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
prevent router from catching specified get request #417
Comments
At the moment (v1.5.2) Vaadin Router does not have an easy way to exclude some in-app URLs from its own control and let the browser handle them. There is an open feature request: #325. However, that limitation only applies to in-app links opened in the same window (e.g. all clicks at It's not immediately obvious to me how is this Vaadin Router limitation blocking you from implementing a 'sign-in with Google' flow. Vaadin Router does not intercept external links like Could you please give some more details? What triggers navigation to the external sign-up URL? Why is that navigation intercepted by Vaadin Router? |
The Google signup button in my app redirect to an end point that is not exists on the client, thus the router intercept it and redirects to not found page. As you wrote your comment I found out it was my Express server middleware order issue. The only issue I have now is that if I click the button straight from the app, Vaadin Router still intercept the request, but making the request from the URL search bar got me into the server. |
I'm glad that you've found a workaround. Currently there is no nicer way to do it, and there is an open feature request to make it possible: #325. I'll close this issue as a duplicate. If you have some ideas about the syntax or the API to exclude some paths from Vaadin Router scope, please share them on the linked issue. |
My scenario:
Registration page with option to signup with google button.
If the user clicks the button it goes automatically to the fallback rout of page not found.
Is there an option to prevent from the client side router to catch specified requests and send it to the server?
Is it possible to redirect the user outside of the app and return him after successful signup/login?
Thanks in advanced
The text was updated successfully, but these errors were encountered: