Skip to content

ion-view pushes to stack #1667

Closed
Closed

Description

@mlynch

When using <ion-view> in certain places (like a Modal), it can unexpectedly push a state to the stack and then show a back button incorrectly when the modal is closed.

Can we add a way to say this view will not push to the stack, or provide more clear ways of using the ion-view tags in modals and other non-navigational UIs?

Activity

  1. ajoslin commented on Jul 7, 2014

    @ajoslin
    Contributor

    We could check if there's a parent modal when using ion-view and do nothing if so.

    We could also possibly make this slightly more generic. Looking into it.

  2. travisdahl commented on Aug 26, 2014

    @travisdahl

    Don't mean to go off topic, but is there a way to manually add to the history stack? I have a case where I am changing the urls manually from slide to slide (without triggering a state change), but would still like to add to the stack for back button purposes after I leave the slides.

  3. ladmerc commented on Jun 9, 2016

    @ladmerc

    @travisdahl Did you find a way to push to history stack? I need a similar feature

  4. locked and limited conversation to collaborators on Sep 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions