Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.
This repository was archived by the owner on May 26, 2025. It is now read-only.

Pjax can work incorrectly when manually calling functions in History #249

@EmptyDreams

Description

@EmptyDreams

Suppose I have two pages:

  1. https://a
  2. https://b

Now I'm on the first page, and then I call history.replaceState to change the URL to https://c.

Then I click the link to jump to the second link, then use the browser's back button to go back to https://c, then use the forward button to go back to https://b, then click the back button again. At this point, you should jump back to the https://c page, but the actual situation is that the URL changes to https://c, but the page content is still https://b.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions