iron-location
iron-location copied to clipboard
seems like not working with data-property of app-route
Description
We used iron-location to get query parameters from url. If we also change the data property of app-route, the url will not be changed in address bar. For example:
<iron-location path="{{path}}" query="{{query}}" use-hash-as-path></iron-location>
<iron-query-params
params-string="{{query}}"
params-object="{{queryParams}}">
</iron-query-params>
<app-route-converter
path="{{path}}"
query-params="{{queryParams}}"
route="{{route}}">
</app-route-converter>
<app-route route="{{route}}"
pattern="/:view"
data="{{routeData}}"></app-route>
...
this.set('routeData.view', 'GNAAA');
Expected outcome
http://someurl/index.html#/GNAAA
Actual outcome
http://someurl/index.html#/
If we remove the iron-location from our code, all works as expected.
Browsers Affected
- [X] Chrome
- [ ] Firefox
- [ ] Safari 9
- [ ] Safari 8
- [ ] Safari 7
- [ ] Edge
- [ ] IE 11
- [ ] IE 10