Defining a backup path

How do I determine the fallback route in Aurelia that I am switching to if the current URL does not match any of the routes in the configuration?

+4
source share
1 answer

According to the docs here you can use

config.mapUnknownRoutes('not-found');

which redirects any untagged routes to the component not found.

+5
source

Source: https://habr.com/ru/post/1655741/


All Articles