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

$location.search() and query parameters before hash #6198

Closed
vertti opened this issue Feb 10, 2014 · 1 comment
Closed

$location.search() and query parameters before hash #6198

vertti opened this issue Feb 10, 2014 · 1 comment

Comments

@vertti
Copy link

vertti commented Feb 10, 2014

Using for example

var myCode = ($location.search()).code

and pointing browser to localhost/#/?code=123 will set myCode = 123 but with browser pointing to localhost/?code=123#/ will leave myCode empty. This is different behaviour than described in the angular docs and in the second case there doesn't seem to be a good way of reading code.

@vertti vertti closed this as completed Feb 10, 2014
@vertti
Copy link
Author

vertti commented Feb 10, 2014

With html5 mode enabled it works as expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant