Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Path reset on page reload #60

Open
softkot opened this issue Jul 24, 2015 · 2 comments
Open

Path reset on page reload #60

softkot opened this issue Jul 24, 2015 · 2 comments

Comments

@softkot
Copy link

softkot commented Jul 24, 2015

My Polymer 1.0 project has the following routes file

<more-routing-config driver="hash"></more-routing-config>

<more-route name="root" path="/">
    <more-route name="login" path="/login/:key"></more-route>
    <more-route path="/settings">
        <more-route name="profile" path="/profile"></more-route>
        <more-route name="projects" path="/projects"></more-route>
    </more-route>
    <more-route name="projectid" path="/project/:projectid">
        <more-route name="projectedit" path="/settings"></more-route>
        <more-route name="outgoing" path="/outgoing"></more-route>
        <more-route name="inbox" path="/inbox"></more-route>
        <more-route name="completed" path="/completed"></more-route>
        <more-route name="task" path="/task/:taskid"></more-route>
        <more-route name="control" path="/control"></more-route>
        <more-route name="response" path="/response"></more-route>
    </more-route>
</more-route>

Then get called MoreRouting.navigateTo("projectedit",{projectid:0}) url is updated correctly to /#!/project/0/settings but refreshing page reset the path to /#!/project/0.

I can't understand that behaviour. Who and why resets the path?

@gazal-k
Copy link

gazal-k commented Jul 27, 2015

I'm also facing the same issue

1 similar comment
@ranjeet-choudhary
Copy link

I'm also facing the same issue

urandom added a commit to urandom/more-routing that referenced this issue Aug 29, 2015
Do not delete the '__silent' property of the params object, since we just set it a couple of lines above this point.
urandom added a commit to urandom/more-routing that referenced this issue Aug 29, 2015
If the param notifies any listener of changes, it will prevent child
routes from activating (when they should).
Fixes googlearchive#60
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

3 participants