# redirectTo in router-lite

**URL:** <https://discourse.aurelia.io/t/redirectto-in-router-lite/5062>\
**Category:** Uncategorized\
**Created:** [January 20, 2023, 1:00pm UTC](https://discourse.aurelia.io/t/redirectto-in-router-lite/5062 "2023-01-20T13:00:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![elitastic](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitastic/32/1787_2.png) [@elitastic](https://discourse.aurelia.io/u/elitastic)\
**Post date:** [January 20, 2023, 1:00pm UTC](https://discourse.aurelia.io/t/redirectto-in-router-lite/5062/1 "2023-01-20T13:00:41Z")

</div>

I have the following routes:

```auto
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`?

> **[redirectTo - StackBlitz](https://stackblitz.com/edit/au2-conventions-urqdg4)**
>
> Run Aurelia application with conventions

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![Sayan751](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/sayan751/32/1861_2.png) [@Sayan751](https://discourse.aurelia.io/u/Sayan751)\
**Post date:** [January 23, 2023, 6:28pm UTC](https://discourse.aurelia.io/t/redirectto-in-router-lite/5062/2 "2023-01-23T18:28:41Z")

</div>

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](https://github.com/aurelia/aurelia/issues/1654)

---

<div class="post-metadata">

**Author:** ![elitastic](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitastic/32/1787_2.png) [@elitastic](https://discourse.aurelia.io/u/elitastic)\
**Post date:** [January 23, 2023, 6:39pm UTC](https://discourse.aurelia.io/t/redirectto-in-router-lite/5062/3 "2023-01-23T18:39:34Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![Sayan751](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/sayan751/32/1861_2.png) [@Sayan751](https://discourse.aurelia.io/u/Sayan751)\
**Post date:** [January 24, 2023, 7:11pm UTC](https://discourse.aurelia.io/t/redirectto-in-router-lite/5062/4 "2023-01-24T19:11:50Z")

</div>

@elitastic The fix should now be available under the [‘dev’ tag](https://www.npmjs.com/package/@aurelia/router-lite?activeTab=versions).

---

<div class="post-metadata">

**Author:** ![elitastic](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitastic/32/1787_2.png) [@elitastic](https://discourse.aurelia.io/u/elitastic)\
**Post date:** [January 24, 2023, 7:28pm UTC](https://discourse.aurelia.io/t/redirectto-in-router-lite/5062/5 "2023-01-24T19:28:52Z")

</div>

It works, thanks for your help!!
