Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Difference in $location.path() between $locationChangeStart and $routeChangeStart #12723

Closed
ravishivt opened this issue Aug 31, 2015 · 2 comments

Comments

@ravishivt
Copy link

If I click on a route with path, "/test?dog=cat#boat" and have both the $locationChangeStart and $routeChangeStart handlers defined, I get different results of $location.path(). For locationChangeStart, I get the full path of "/test?dog=cat#boat" but with routeChangeStart, I only get "/test". I could reconstitute the query params using the nextRoute argument that gets passed with $routeChangeStart but the "#boat" search history isn't available in the nextRoute.

This is on Angular 1.4.4.

@petebacondarwin
Copy link
Member

I cannot reproduce this in 1.4.4: See http://plnkr.co/edit/1WvuFIS9rDjDt9JhK7CU?p=preview

@gkalpak
Copy link
Member

gkalpak commented Jun 1, 2016

Closing due to lack of reproduction.

@gkalpak gkalpak closed this as completed Jun 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants