How to keep history state of browser untouched? (to disable back gesture on iOS) #8774
-
Since the back gesture on iOS Safari destroys every SPA UI, I'd like to keep history always the same despite having Edit and fwiw: ofc iOS back gesture isn't disabled with this move but it wouldn't lead the last page but to the prior site outside of my SPA which I'd be ok with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Something like this I think. Never tried it myself but it seems right. goto("/another-page", { replaceState: true })
https://kit.svelte.dev/docs/modules#$app-navigation-goto Similar to https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState |
Beta Was this translation helpful? Give feedback.
Something like this I think. Never tried it myself but it seems right.
https://kit.svelte.dev/docs/modules#$app-navigation-goto
Similar to https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState