Pjax can work incorrectly when manually calling functions in History #249
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Suppose I have two pages:
https://ahttps://bNow I'm on the first page, and then I call
history.replaceStateto change the URL tohttps://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 tohttps://b, then click the back button again. At this point, you should jump back to thehttps://cpage, but the actual situation is that the URL changes tohttps://c, but the page content is stillhttps://b.The reason for 404 should be that the
stateI passed in manually overrides the state set by PJAX.But I do need a way to tag a page, and now I have to identify it by adding parameters to the URL.
It is hoped that PJAX will not overwrite the original
statein the state when the page jumps.