Skip to content

navigate back multiple times with one step #1167

Closed
@cindy-m

Description

@cindy-m

In the app where I am currently work on, we have a situation where the user can navigate 4 pages down, with everywhere the possibility to go back one step. At the end of page 4, the user needs to be navigated back to page 2, with the back button in page 2 still working. So, actually go back 2 steps with just one animation.
I could not find how to this with the routerExtension in any way. Use Frame.goBack(to:BackStackEntry) works to navigate back to the second page, but when the user than taps back to the first page, the navigation brakes and it is not possible to move to the second page anymore (all other navigations to other path that was not used before does work correctly).

Is there a way to go back more than one page in just one step without clearing the whole history so that the back button still works on that page?

I found this issue already in stacklayout where they have the same problem: NativeScript/NativeScript#3848

But I could not implement the suggested solution myself, (at least not without changing the code of NativeScript-angular itself and that is something we absolutely don't want)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions