# Getting Current user route and path

**URL:** <https://meta.discourse.org/t/getting-current-user-route-and-path/56723>\
**Category:** Development\
**Created:** [1 Febbraio 2017, 5:17pm UTC](https://meta.discourse.org/t/getting-current-user-route-and-path/56723 "2017-02-01T17:17:00Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![duranmla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/duranmla/32/109295_2.png) [@duranmla](https://meta.discourse.org/u/duranmla)\
**Post date:** [14 Marzo 2018, 3:57pm UTC](https://meta.discourse.org/t/getting-current-user-route-and-path/56723/5 "2018-03-14T15:57:33Z")

</div>

What is the advantage of this over `window.location.pathname`?

---

_[View the full topic](https://meta.discourse.org/t/getting-current-user-route-and-path/56723)._
