redirectTo in router-lite

I have the following routes:

static routes = [
    {
      path: '',
      redirectTo: 'home',
    },
    {
      path: 'home',
      component: Home,
    },
  ]

The redirect to the home path works (Home component is rendered), but shouldn’t the URL be updated to /home?

Thanks for any help.

Thanks @elitastic for reporting this. I will look into this.

Created a GH issue: redirectTo in router-lite does not change the URL · Issue #1654 · aurelia/aurelia · GitHub

1 Like

Thank you very much!

1 Like

@elitastic The fix should now be available under the ‘dev’ tag.

1 Like

It works, thanks for your help!!

1 Like