Skip to content

Back Button not Working #14861

Closed
Closed

Description

@kensodemann

Bug Report

Ionic Info

Ionic:

   ionic (Ionic CLI)          : 4.0.0-rc.11 (/usr/local/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-alpha.13
   @angular-devkit/core       : 0.7.0-rc.1
   @angular-devkit/schematics : 0.7.0-rc.1
   @angular/cli               : 6.0.8
   @ionic/ng-toolkit          : 1.0.0-rc.11
   @ionic/schematics-angular  : 1.0.0-rc.11

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : ios 4.5.4

System:

   Android SDK Tools : 26.1.1
   ios-deploy        : 1.9.2
   ios-sim           : 6.1.2
   NodeJS            : v9.8.0 (/usr/local/Cellar/node/9.8.0/bin/node)
   npm               : 6.1.0
   OS                : macOS High Sierra
   Xcode             : Xcode 9.4.1 Build version 9F2000

Environment:

   ANDROID_HOME : /Users/kensodemann/Library/Android/sdk/

Describe the Bug
With Alpha.13, the ion-back-button component does not take me back to the prior page, but rather displays a blank page.

Steps to Reproduce
Steps to reproduce the behavior:

  1. git clone [email protected]:kensodemann/test-prolea.git
  2. npm i
  3. ionic serve
  4. go to the contacts tab
  5. press the Open Child Page One button (top button)
  6. press the back button in the app's nav bar
  7. everything appears to work *
  8. upgrade to alpha 13
  9. repeat above starting with step 2
  10. page is blank after back

Related Code
https://github.com/kensodemann/test-prolea

Expected Behavior
The ion-back-button would take me back to http://localhost:8100/tabs/(contact:contact) instead of http://localhost:8100/tabs, the contacts page would be displayed again, and all life would be happiness and joy.

Activity

  1. self-assigned this
    on Jul 25, 2018
  2. kensodemann commented on Aug 17, 2018

    @kensodemann
    ContributorAuthor
  3. corcorb commented on Aug 22, 2018

    @corcorb

    I'm getting the same behavior on a tabs page, with an added issue — if, after going back, I click on either the current tab or another tab, the whole page reloads.

  4. kensodemann commented on Nov 2, 2018

    @kensodemann
    ContributorAuthor

    Updated the sample app from beta.3 to beta.15 and verified that this is still an issue with the latest beta.

  5. added
    package: core
    type: bug
    on Dec 8, 2018
  6. kensodemann commented on Feb 27, 2019

    @kensodemann
    ContributorAuthor

    I am going to close this because:

    1. we do not use the named router outlets anymore, and the demo app for this used that.
    2. while we still have a related issue, it is covered by several other reported issues, including RC.0 - ion-back-button with child in tabs starter goes to wrong tab  #16923, [Ionic v4-beta.3] Bug navigation between tab page & no page tab - back button redirects to wrong tab #15216, and Ionic 4 <ion-back-button> issue #17421

    Any further comments should be directed to #15216

  7. locked and limited conversation to collaborators on Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

package: coretype: bug

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