Skip to content

feat(deafultHistory): add segment support #13137

@AmitMY

Description

@AmitMY

Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
[ ] 4.x

I'm submitting a ... (check one with "x")
[ ] bug report
[x] feature request

Current behavior:
in defaultHistory you have to use a page name

Expected behavior:
being able to use a segment, like the following:

  segment: 'businesses/:businessKey/specials',
  defaultHistory: ['businesses/:businessKey']

because for example in this case, I need parameters to go back,

or maybe make it a method of IonicPage, like a defaultGoBack method, that if exists you know there is history, and if you press on the back button and there are no pages in the stack, goes there

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