Skip to content

bug: ionic vue main outlet re-rendering tabs when leaving and going back to tabs #22519

@goffincedric

Description

@goffincedric

Bug Report

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

Current behavior:
Same behaviour as #21885, but with Vue 3.

Expected behavior:
Expect the first tab to redirect to the correct page/component instead of the initial redirected tab page.

Steps to reproduce:

  1. Have a setup with a tabbar and multiple tabs, each tab-button having their own route (eg: tab1 = /tab1, tab2 = /tab2, tab3 = /tab3) and a component that does not use the tabbar (eg /home)
  2. Start on a tab in the tab component (eg: /tab2),
  3. Navigate out of the tab component (eg: /home)
  4. Use the router to redirect to the link of a specific tab, that is not the first tab (eg: /tab3).
  5. Observe that the wrong component is shown, and clicking the first tab doesn't redirect to the first tab.

Other information:
See issue: #21885

Ionic info:

Ionic:

   Ionic CLI       : 6.12.0 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework : @ionic/vue 5.4.1

Capacitor:

   Capacitor CLI   : 2.4.2
   @capacitor/core : 2.4.2

Utility:

   cordova-res : 0.15.2
   native-run  : not installed

System:

   NodeJS : v12.16.1 (/usr/local/bin/node)
   npm    : 6.14.8
   OS     : macOS Big Sur

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions