We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19b1cd6 commit 3c7d8abCopy full SHA for 3c7d8ab
src/util/scroll.js
@@ -8,7 +8,8 @@ const positionStore = Object.create(null)
8
9
export function setupScroll () {
10
// Fix for #1585 for Firefox
11
- window.history.replaceState({ key: getStateKey() }, '')
+ // Fix for #2195 Add optional third attribute to workaround a bug in safari https://bugs.webkit.org/show_bug.cgi?id=182678
12
+ window.history.replaceState({ key: getStateKey() }, '', window.location.href.replace(window.location.origin, ''))
13
window.addEventListener('popstate', e => {
14
saveScrollPosition()
15
if (e.state && e.state.key) {
0 commit comments