vaadin / vaadin/framework

view parameter escaping/unescaping issue when using @PushStateNavigation

Open
#11,057 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Stale workaround
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

Vaadin 8.4.5. Please see the attached application. When I launch it in Intellij Ultimate in Tomcat, it will correctly show that the MyView has been launched with no parameters. Now, please press the "In-app navigation" button. The URL will change to http://localhost:8080/my/foo%3a and the Label will say Parameters: foo%3a. Now, when you press F5 in your browser, for the same URL the Label will say Parameters: foo:.

The behavior is corrected when the @PushStateNavigation is removed from the MyUI class.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached application and the MyUI class using @PushStateNavigation, then reproduce the navigation from MyView with the "In-app navigation" button. Compare the URL and Label output before and after pressing F5, including the foo%3a and foo: values. Done means navigation and refresh handle the view parameter consistently without removing @PushStateNavigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.