# App.router.currentState is gone / harder to use in RCs; replacement?

**URL:** <https://discuss.emberjs.com/t/app-router-currentstate-is-gone-harder-to-use-in-rcs-replacement/1613>\
**Category:** Uncategorized\
**Created:** [June 25, 2013, 6:06am UTC](https://discuss.emberjs.com/t/app-router-currentstate-is-gone-harder-to-use-in-rcs-replacement/1613 "2013-06-25T06:06:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgharms](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/sgharms/32/14402_2.png) [@sgharms](https://discuss.emberjs.com/u/sgharms)\
**Post date:** [June 25, 2013, 6:06am UTC](https://discuss.emberjs.com/t/app-router-currentstate-is-gone-harder-to-use-in-rcs-replacement/1613/1 "2013-06-25T06:06:47Z")

</div>

Something that I loved in the 0.9.8 series was using `App.router.currentState` and its `name` and `currentPath` properties to get the router state and then do something simple with it. A basic example might be to keep track of breadcrumbs or “where am i.”

I have not found this same datum (easily) anywhere in RC6. I eventually _did_ find a way to get at it but it was so buried and convoluted that, it seems to me, the core is signaling **don’t do this**.

As a practical example consider a view with

```nohighlight
<div {{bindAttr class="isCurrent"}}>
 etc
</div>

```

and

```auto
isCurrent: function() {
  App.router.currentState.get('path') === this.get('myPath');
}.property()

```

_Not compiled and tested code_

So my questions are:

1. Is the obfuscation of this datum intentional
2. Should I be using a different access pattern?
3. Is anyone doing anything like this successfully?

Thanks

Steven

---

<div class="post-metadata">

**Author:** ![knownasilya](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/knownasilya/32/12912_2.png) [@knownasilya](https://discuss.emberjs.com/u/knownasilya)\
**Post date:** [June 25, 2013, 8:39pm UTC](https://discuss.emberjs.com/t/app-router-currentstate-is-gone-harder-to-use-in-rcs-replacement/1613/2 "2013-06-25T20:39:05Z")

</div>

You can use the `currentPath` property on the `ApplicationController`. [See this link](http://ianpetzer.wordpress.com/2013/06/22/determining-the-current-path-in-ember-js/).
