Skip to content

[PiT] switching between different views results in wrong url #20671

Closed

Description

@ZheSun88

Description of the bug

for a multi view app, when i switch between different views, the url will be ended in a wron format.
check GIF
multi-view-24 6 0 beta4

Expected behavior

app works

Minimal reproducible example

curl -s -f 'https://start.vaadin.com/dl?&preset=latest-java&preset=partial-auth&projectName=latest-java_partial-auth' -o 'latest-java_partial-auth.zip'
unzip -q 'latest-java_partial-auth.zip'
cd 'latest-java-partial-auth'
perl -pi -e 's|(\s*<'vaadin.version'>)[^\s]+(</'vaadin.version'>)|${1}24.6.0.beta4${2}|g' pom.xml
perl -pi -e 's|(\s*)(<repositories>)|$1$2\n$1$1<repository><id>v</id><url>https://maven.vaadin.com/vaadin-prereleases</url></repository>|' pom.xml
perl -pi -e 's|(\s*)(</project>)|$1$1<pluginRepositories><pluginRepository><id>v</id><url>https://maven.vaadin.com/vaadin-prereleases</url></pluginRepository></pluginRepositories>\n$1$2|' pom.xml
perl -pi -e 's|<java.version>21</java.version>|<java.version>17</java.version>|' pom.xml
./mvnw

then navigate to `localhost:8080`
login the app admin/admin
switch between views like in the gif

Versions

  • Vaadin / Flow version:24.6.0.beta4/24.6.0.beta8 (hilla version 24.6.0.beta7)

Activity

  1. caalador commented on Dec 11, 2024

    @caalador
    Contributor

    Is this changing routes between flow routes using a hilla main layout?

  2. caalador commented on Dec 11, 2024

    @caalador
    Contributor

    I can see this appending of the navigation route if I use a slowed down connection for the application.

  3. mshabarov commented on Dec 11, 2024

    @mshabarov
    Contributor

    I couldn't reproduce even with 3G and slow 4G:
    appending-path

  4. mshabarov commented on Dec 11, 2024

    @mshabarov
    Contributor

    UPD: I can reproduce with 3G, but it's very rare and I have to click very fast.

  5. mshabarov commented on Dec 11, 2024

    @mshabarov
    Contributor

    What I noticed on the GIF in the description is that the dashboard menu link isn't highlighted when clicked, which may be a sign of very slow reaction of browser 🤔

  6. ZheSun88 commented on Dec 11, 2024

    @ZheSun88
    MemberAuthor

    i wonder why it has not been caught in previous beta or other flow versions.

    has something changed which make it visible?

    oh, yes.. i was testing with my phone 5G hotspot

  7. self-assigned this
    on Dec 11, 2024
  8. added a commit that references this issue on Dec 11, 2024
    96fab0c
  9. added 4 commits that reference this issue on Dec 11, 2024
    601bc1c
    8cbc4dc
    33463c4
    51c6713
  10. vaadin-bot commented on Dec 12, 2024

    @vaadin-bot
    Collaborator

    This ticket/PR has been released with Vaadin 24.6.0.rc1 and is also targeting the upcoming stable 24.6.0 version.

  11. added a commit that references this issue on Dec 18, 2024
    d17f169
  12. vaadin-bot commented on Dec 20, 2024

    @vaadin-bot
    Collaborator

    This ticket/PR has been released with Vaadin 24.5.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions