Skip to content

Router with view transition api duplicates navigation history sometimes. #482

Description

@illispi

Describe the bug

When you click A, B or C route and then hit back navigation sometimes router navigates back to A even thought it should navigate to /. Its kind of rare behavior, so to repro you have try it multiple times. It happens more frequently on Brave browser than Chrome, so I am not sure what to make of it, maybe its some kind browser issue? Especially since on Brave android, sometimes VT api doesn't even trigger sometimes on back navigation. But my another astrojs site doesn't seem to fail on back navigation with vt api, so i can't be sure.

Your Example Website or App

https://github.com/illispi/SolidRouterVTapiIssue

Steps to Reproduce the Bug or Issue

  1. Click A
  2. Click back navigation
  3. repeat on A, B or C until issue occurs.

Expected behavior

Navigate consistently back to correct route.

Screenshots or Videos

No response

Platform

  • Windows 11
  • Chrome and Brave 129

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions