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

Generated URL starts with "/" for @Route("") with a parameter #2562

Closed
Legioth opened this issue Oct 1, 2017 · 0 comments
Closed

Generated URL starts with "/" for @Route("") with a parameter #2562

Legioth opened this issue Oct 1, 2017 · 0 comments
Assignees
Milestone

Comments

@Legioth
Copy link
Member

Legioth commented Oct 1, 2017

The return value of Router.getUrl starts with / for @Route("") with a parameter. This causes UI.navigateTo to explode.

The exception is:

java.lang.IllegalArgumentException: Relative path cannot start with /
	at com.vaadin.router.Location.verifyRelativePath(Location.java:314) ~[flow-server-1.0-SNAPSHOT.jar:na]
	at com.vaadin.router.Location.parsePath(Location.java:276) ~[flow-server-1.0-SNAPSHOT.jar:na]
	at com.vaadin.router.Location.<init>(Location.java:71) ~[flow-server-1.0-SNAPSHOT.jar:na]
	at com.vaadin.ui.UI.navigateTo(UI.java:689) ~[flow-server-1.0-SNAPSHOT.jar:na]
	at com.vaadin.ui.UI.navigateTo(UI.java:659) ~[flow-server-1.0-SNAPSHOT.jar:na]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants