Skip to content

bug: IonTab not selected on dynamic routes (introduced in 8.6.0) #30552

@hugocxl

Description

@hugocxl

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

When navigating directly to a tab in a dynamic route that includes a Tab Bar component (eg: page/1/home), the tab is not selected.

This issue is introduced in 8.6.0. In the provided example it can be reproduced changing the dependencies version.

Expected Behavior

When navigating directly to a tab in a dynamic route that includes a Tab Bar component (eg: page/1/home), the tab is selected

Steps to Reproduce

  1. Click on any of the dynamic pages in the initial page
  2. Observe that the home tab is not selected

Code Reproduction URL

https://stackblitz.com/edit/sb1-stbfygxm?file=package.json

Ionic Info

Ionic:

Ionic CLI : 5.4.16

Utility:

cordova-res : not installed
native-run : not installed

System:

NodeJS : v20.19.1
npm : 10.8.2
OS : Linux 5.0

Additional Information

Version 8.5.9 works as expected. After 8.6.0 it does not (any posterior version).
I've been looking into the commits of that version but could not identify the issue.

Thanks for you help ❤️

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions