Rollup + TypeScript + Pug + SASS template with no plan for JavaScript frameworks, whatsoever
In short, more than history.pushState, you also need window.dispatchEvent(new PopStateEvent('popstate', { state: { to } })); if you don't have history.go.
Now, you can listen to popstate events.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I have my successful solution here. Might write an article later.
Rollup + TypeScript + Pug + SASS template with no plan for JavaScript frameworks, whatsoever
In short, more than
history.pushState, you also needwindow.dispatchEvent(new PopStateEvent('popstate', { state: { to } })); if you don't havehistory.go.Now, you can listen to
popstateevents.