Redirect With Vue Router Without Changing the URL
🚧 PLEASE NOTE: This masterclass is built with the Options API
The Composition API Masterclass is coming soon!
Sign-up for the Vue.js Masterclass 2024 Edition.
In this lesson, we'll learn to use the Vue router's Route Guards (middleware) to check if a resource exists before entering the route.
If the resource doesn't exist, we'll redirect the user to our 404 page, while still keeping the exact same URL.
Routing & Components Basics
8 lessons • 48 min7:15
6:00
2:09
8:43
4:50
NEXT CHAPTER
Organizing the Application10 lessons • 1 hr
