Ionic-framework: bug: Vue fail to navigate with IonBackButton and default-href

Created on 6 Oct 2020  路  4Comments  路  Source: ionic-team/ionic-framework

Bug Report

When I use the IonBackButton and default-href it Fails to navigate back.

Ionic version:
[ ] 4.x
[x] 5.x

Current behavior:
I open a tab with the tabs navigation. Go to the second tab and hit the backButton and nothing happens.

Expected behavior:
Should take me to the previous page.

Steps to reproduce:

  1. Go to tabs with IonBackButton
  2. Click on another Tab with IonBackButton
  3. Hit the IonBackButton

Related code:

    <ion-header>
      <ion-toolbar>
        <ion-buttons>
          <ion-back-button default-href="/pretab"></ion-back-button>
        </ion-buttons>
        <ion-title>Tab 2</ion-title>
      </ion-toolbar>
    </ion-header>

Updated an example here.
https://github.com/scottix/vue-pretab

Other information:
Might be similar to this
https://github.com/ionic-team/ionic-framework/issues/22166#issuecomment-702078531

Ionic info:

Ionic:

   Ionic CLI       : 6.11.8-testing.0 (/usr/lib/node_modules/@ionic/cli)
   Ionic Framework : @ionic/vue 0.5.2

Utility:

   cordova-res                          : not installed
   native-run (update available: 1.2.1) : 0.2.5

System:

   NodeJS : v12.18.4 (/usr/bin/node)
   npm    : 6.14.6
   OS     : Linux 5.4
vue bug

All 4 comments

Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?

npm install @ionic/[email protected] @ionic/[email protected] --save-exact

Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?

npm install @ionic/[email protected] @ionic/[email protected] --save-exact

Works

Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic-framework/pull/22275, and a fix will be available in an upcoming release of Ionic Framework.

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexbainbridge picture alexbainbridge  路  3Comments

daveshirman picture daveshirman  路  3Comments

BilelKrichen picture BilelKrichen  路  3Comments

Nick-The-Uncharted picture Nick-The-Uncharted  路  3Comments

danbucholtz picture danbucholtz  路  3Comments