If you navigate the links in order, and then back in reverse order, everything works file:
Root -> Page -> Perth -> Cat1 and then backwards Perth -> Page -> Root
HOWEVER, if you go to Root -> Page -> Perth -> Cat1, and then straight to page, you will see:
activeCategory and routeDataCategory: true {"category":"cat1"}
This tells me that the category route is, according to app-route, still active. However, it really really isn't.
I realise that there are some optimisation issues that will prevent routes from replicating. However, active really should reflect the truth. I looked through the code and couldn't work out why this is happening.
This is a simple use-case for app-route and app-location. To replicate it, just
polymer init
an app calledpp
and copy overpp-app.html
with this:And also
bower install PolymerElements/app-route
.If you navigate the links in order, and then back in reverse order, everything works file:
Root -> Page -> Perth -> Cat1 and then backwards Perth -> Page -> Root
HOWEVER, if you go to Root -> Page -> Perth -> Cat1, and then straight to
page
, you will see:This tells me that the category route is, according to
app-route
, still active. However, it really really isn't. I realise that there are some optimisation issues that will prevent routes from replicating. However,active
really should reflect the truth. I looked through the code and couldn't work out why this is happening.