Wildcard Routes
In this lesson, we'll learn how to set up wildcard routes to capture routes that don't exist.
We'll cover the following...
There’s one more route we’re going to add. Currently, the user can navigate around with the links. What if they navigate to a page that doesn’t exist? Try to input a random path in the address bar.
If they attempt to navigate to a page that doesn’t exist, the application will throw an error. It’s telling us that the path doesn’t match any of the routes registered in the application. Typically, most applications and sites will display a 404 not found page if we visit a resource ...