[V2] router.back() removes stacked page from dom?


#1

hi, i’ve got an app/view with only stacked pages (

).

every time i use the “back” function (either by hardware button, swipeback or manual by router.back()) the page got removed from the dom after the new (previouse) page shows up.

after that its impossible to navigate to that page again, because its gone.

is this on purpose?


How to use stacked pages?
#2

Did you set stackPages when creating the view? You may also need to add the stacked class to the page <div class="page stacked">.


#3

Yes i did, only the first page i want to show on init does not have the stacked class. All works great when using hrefs /path/ or router.navigate, so navigating forward, but back removes the page


#4

And did you enable stackPages: true View’s parameter?