Open jkanche opened 6 years ago
The page doesn't get updated with the path if path is set using JS.
the page url should be updated
The page url is not updated
Add the following to a page
<app-location route="{{route}}" use-hash-as-path></app-location> <app-route route="{{route}}" pattern="/:workspace" data="{{routeData}}" tail="{{subroute}}"> </app-route>
set the workspace id in Js this.set("routeData.workspace", "sample-workspace");
this.set("routeData.workspace", "sample-workspace");
run polymer serve and if the page is pointing to localhost:8081/ the hash is not updated in the url.
polymer serve
However, if the page is pointing to localhost:8081/#/ then the workspace Id shows up in the url.
Description
The page doesn't get updated with the path if path is set using JS.
Expected outcome
the page url should be updated
Actual outcome
The page url is not updated
Steps to reproduce
Add the following to a page
set the workspace id in Js
this.set("routeData.workspace", "sample-workspace");
run
polymer serve
and if the page is pointing to localhost:8081/ the hash is not updated in the url.However, if the page is pointing to localhost:8081/#/ then the workspace Id shows up in the url.
Browsers Affected