Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Uncaught (in promise) Error: Redirected when going from "/login" to "/" via a navigation guard.

Solution 2.1: Individual suppress errors on each router.push call
The router.push function is returning a Promise (as it can be considered, or will be, an asynchronous job). All you need to do is to suppress any Error it might throw via

router.push('/B').catch(() => {});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Uncaught #Redirected #navigation
ADD COMMENT
Topic
Name
3+3 =