# Aurelia 2 and current active route

**URL:** <https://discourse.aurelia.io/t/aurelia-2-and-current-active-route/5217>\
**Category:** Uncategorized\
**Created:** [August 17, 2023, 2:31pm UTC](https://discourse.aurelia.io/t/aurelia-2-and-current-active-route/5217 "2023-08-17T14:31:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zowat](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/zowat/32/2392_2.png) [@zowat](https://discourse.aurelia.io/u/zowat)\
**Post date:** [August 17, 2023, 2:31pm UTC](https://discourse.aurelia.io/t/aurelia-2-and-current-active-route/5217/1 "2023-08-17T14:31:54Z")

</div>

I’m migrating a larger Aurelia 1 application and I have trouble getting the active route in components.

I’m using the _aurelia/router_ and I’m following the example in [Router Recipes - The Aurelia 2 Docs](https://docs.aurelia.io/routing/router-recipes#getting-the-currently-active-route)

I’m doing this in _attached_ and if i delay the check for a few milliseconds it works, so it looks like it’s a timing issue. Should’t the router be ready in _attached_ or is there a later component lifecycle step I could use?
