Skip to content
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

Possibility to specify reroute or forward #8

Open
Juchar opened this issue Apr 4, 2019 · 1 comment
Open

Possibility to specify reroute or forward #8

Juchar opened this issue Apr 4, 2019 · 1 comment
Assignees

Comments

@Juchar
Copy link

Juchar commented Apr 4, 2019

Currently the Access uses rerouteTo(). Vaadin 13 also introduces forwardTo().

It would be useful to have the possibility - e.g. using Access.restricted( "", true) inside the AccessEvaluator - to specify if the user should be forwarded or rerouted.

Scenarios:

  1. If the user is not logged in, I want to reroute him to the login view so that the actual target is remembered in the url. Once he authenticated I can redirect him to the original requested url.

  2. If the access to a view is not granted, I might want to just forward him to another view. There I do not want to keep the original url route.

@berndhopp
Copy link
Owner

Will be implemented

@berndhopp berndhopp self-assigned this Oct 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants