Skip to content

Navigation back or forward not working #26

@aigan

Description

@aigan

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure it has not already been reported

Version (i.e. v2.x.x)

1.0.1-alpha.200

Node.js version (i.e. 18.x, or N/A)

v18.16.0

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10, or N/A)

Debian 12.5

Description

Using Firefox 123.0.1 (64-bit) on Linux.
Tried several pre-packaged versions of navigation, including a rollup of @virtualstate/navigation/esnext/polyfill

The navigate event was sent and was working when clicking on links.
But no event was sent for history navigation by clicking on browser navigate back or forward.
Additionally, No navigation event was sent for traversal to new page by setting window.location.
Also, the value of ev.downloadRequest was not null.

Steps to Reproduce

Created
https://github.com/aigan/virtualstate-navigation-bugs

Also possibly availible on my workstation on
https://hem.jonas.liljegren.org/proj/virtualstate-navigation-bugs/

Expected Behavior

Expecting the console to log the Navigate message from the navigate event

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions