Is it possible to prevent the loading indicator from appearing when the back button is pressed in the mobile Safari browser? #2057
-
Hello. first of all, I'm not good at English, so I used a translator, so please understand that the sentences may be a little awkward... I am using Vue 3 + Vue Router. I've coded the following to prevent navigating back from the page where a certain service ends. javascript if (notAllowPaths.includes(to.path)) { // Other logic... next(); The above code works normally, but... On the mobile Safari screen, as of iOS 17.2, a blue loading bar is displayed at the bottom of the browser with slight progress. In the case of mobile Chrome, there is no problem, as if you were using a resolver. As a precaution, I set endFlag as a global variable and set the value to true when you go to step05. javascript How can I prevent the loading bar itself from appearing? (Or make it appear as if the loading bar has been handled.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The browser doesn't allow you to change that. It will also not let you "trap" a user on a page. They will always be able to force a go back if they click multiple times the back button, this is a browser behaviour they don't intend to change. |
Beta Was this translation helpful? Give feedback.
The browser doesn't allow you to change that. It will also not let you "trap" a user on a page. They will always be able to force a go back if they click multiple times the back button, this is a browser behaviour they don't intend to change.