# CurrentPath vs CurrentURL test helpers

**URL:** <https://discuss.emberjs.com/t/currentpath-vs-currenturl-test-helpers/8732>\
**Category:** Testing\
**Created:** [September 3, 2015, 2:13pm UTC](https://discuss.emberjs.com/t/currentpath-vs-currenturl-test-helpers/8732 "2015-09-03T14:13:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Max](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/andrew_max/32/11193_2.png) [@Andrew\_Max](https://discuss.emberjs.com/u/Andrew_Max)\
**Post date:** [September 3, 2015, 2:13pm UTC](https://discuss.emberjs.com/t/currentpath-vs-currenturl-test-helpers/8732/1 "2015-09-03T14:13:20Z")

</div>

Realized that what I had posted as a seperate bug was maybe just my misunderstanding of the currentURL vs currentPath test helpers or possibly a bug in one of the helpers.

```
test('unauthenticated', function(assert) {
  visit('/maps');

  andThen(function() {
    //currentPath: "login"
    //currentURL: "/login"
    //onPage: login
  });

  visit('/maps');
  andThen(function() {
    return pauseTest();
    //currentPath: "login"
    //currentURL: "/maps"
    //onPage: login
  });
});

```

Why would the currentURL be “/maps” in the second case? The actual url that would be dislplayed to the user here is /login which I can verify with a pauseTest()
