Clear Redirects
# Clear Redirects
# Description
Removes the navigation methods from Vue Router.
# When to use it
If accessing a restricted route after removing navigation guards triggers a redirect, enable this script to prevent it.
# Frequently asked questions
# Redirects still occur after clearing
The website may call a navigation method before the injected script has removed it. In that case, consider manually replacing the JavaScript to remove the method. Alternatively, the redirect may use something other than Vue Router's navigation methods. Try enabling hook close or hook history in the AntiDebug section, or use Locate Page Redirect Code to locate the redirect function and replace the JavaScript to remove it.
For usage instructions, see Locate Page Redirect Code.
# Underlying approach
For more Vue techniques, including removing navigation guards, loading dynamic routes, and removing redirects, see my two-part Vue series published last year:
Maximizing JavaScript Collection in Vue Single-Page Applications