You can set up redirects in your route configuration to automatically navigate users from one route to another.
config.map([
{ route: '', redirect: 'home' },
{ route: 'home', name: 'home', moduleId: PLATFORM.moduleName('home/index') }
]);
This will redirect the root URL to the 'home' route.
You can also use the redirect
property in more complex route configurations:
config.map([
{
route: 'legacy-route',
name: 'legacy',
redirect: 'new-route'
},
{
route: 'new-route',
name: 'new',
moduleId: PLATFORM.moduleName('new/index')
}
]);