Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

seems like not working with data-property of app-route  #60

@tschiela

Description

@tschiela

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

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions