Skip to content

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

Closed

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 ❤️

Activity

  1. hugocxl commented on Jul 21, 2025

    @hugocxl
    Author

    Hi! Any updates on this?

  2. aryamitra06 commented on Jul 22, 2025

    @aryamitra06

    I'm also getting the same issue!

  3. aeharding commented on Aug 4, 2025

    @aeharding
    Contributor

    I'm also experiencing this issue. I don't think dynamic routes has anything to do with the underlying issue though. Here's a simplified reproduction taken straight from Ionic docs (just changing version numbers):

    Version Demo Link Screenshot
    v8.6 StackBlitz Demo Image
    v8.5 StackBlitz Demo Image
  4. added
    type: bug
    on Aug 4, 2025
  5. self-assigned this
    on Aug 4, 2025
  6. ShaneK commented on Aug 4, 2025

    @ShaneK
    Member

    Hey! Thanks for the report!

    I have a dev build up for this if you'd like to try it:

    8.7.2-dev.11754338216.1a548096
    
  7. added a commit that references this issue on Aug 4, 2025
    a2e803a
  8. aeharding commented on Aug 5, 2025

    @aeharding
    Contributor

    Thanks @ShaneK your fix appears to be working great!

  9. ShaneK commented on Aug 6, 2025

    @ShaneK
    Member

    Thanks again for the report! The fix for this was released in v8.7.2.

  10. hugocxl commented on Aug 7, 2025

    @hugocxl
    Author

    Thank you @ShaneK ❤️

  11. ionitron-bot commented on Sep 6, 2025

    @ionitron-bot

    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.

  12. locked and limited conversation to collaborators on Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: 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