Skip to content

Nested Routing and ClearHistory: Error when route between nested routes #1052

Open
@codeback

Description

@codeback

I have two routes which have child routes:

  • Route A

    • Nested Route A1
    • Nested Route A2
  • Route B

    • Nested Route B1
    • Nested Route B2

If I navigate from 'Nested Route A2' to 'Nested Route B1' with clearHistory=true, then I can not navigate anymore between 'Nested Route B1' and 'Nested Route B2'.

This repo reproduces the issue. Steps to reproduce it:

  1. Navigate to 'Angular routing' -> 'Nested routers'
  2. Click on 'SECOND' button,
  3. Click in the big button 'This is second. Load first',
  4. Now, you are in the 'Angular Routing 2' component, but you can't navigate between the nested routes.

Please see this animation:
nested_routing_clearhistory

The repo is using:

  • "nativescript-angular": "next",
  • "tns-core-modules": "next",

The problem occurs in both platforms (iOS an Android).

P.D. I know that there are several issues regarding clearHistory but I think this case is not reported. Sorry if I am wrong.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions