How do I create a redirect route in Aurelia 2?

93 Views Asked by At

Let's say I want http://localhost/#/ to redirect to http://localhost/#/home, how would I do that?

1

There are 1 best solutions below

2
jwx On

One way to do it is by setting a default on the viewport:

<au-viewport default="home"></au-viewport>