Skip to content

bug: router-outlet should activate a route with the same components if params are different #24653

@vicb

Description

@vicb

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

It is not possible to load a route with the same component in the outlet even if the params are different.

That's because we only compare the component, not the params.

Expected Behavior

It should be possible to load a route with the same component as long as the params are different.

This would be consistent with <ion-nav>

Steps to Reproduce

Activate routes with the same component and different params.

I'll send a PR with tests.

Code Reproduction URL

No response

Ionic Info

No response

Additional Information

#24652 needs to be fixed first

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