When I click the About link, it successfully forbids me from entering /about.
However, when I click the nav button, it just leaves a blank page without rendering anything.
Expected behavior
As for the document, it should redirect to the from path.
Actual behavior
Rendering nothing
Additional information
I wonder if this is in design or if there are some tech limits in implementing this feature.
If so, how should I resolve the problem?
And is using return false a bad idea?
Maybe I should return from.path
Reproduction
https://stackblitz.com/edit/vue3-vite-router-starter-69rngy?file=package.json
Steps to reproduce the bug
When I click the
About
link, it successfully forbids me from entering/about
. However, when I click thenav
button, it just leaves a blank page without rendering anything.Expected behavior
As for the document, it should redirect to the
from
path.Actual behavior
Rendering nothing
Additional information
I wonder if this is in design or if there are some tech limits in implementing this feature. If so, how should I resolve the problem? And is using
return false
a bad idea? Maybe I shouldreturn from.path