Adapt.location._previousContentType not working correctly after you navigate backwards
-
Start on a menu
-
Navigate "forward" to a page (A):
Adapt.location._contentType = "page" Adapt.location._previousContentType = "menu" -
Navigate "forward" to another page (B):
Adapt.location._contentType = "page" Adapt.location._previousContentType = "page" -
Go back to page A:
Adapt.location._contentType = "page" Adapt.location._previousContentType = "page" // Incorrectly reporting type of page B
After navigating backwards, the _previousContentType outputs the type of the "next" (the last viewed) page in the history rather than the actual previous page in the stack.
Could we leverage the HTML5 history API that Backbone uses to store the page type and previous page type when navigating so when you update location, the data about what came before was available?
I was logging this out on Adapt.on( 'router:location', function() { ... } );
this is really old now, do you know if this is still an issue?
no response, closing