Skip to content

Paths generated for child outlets relative to empty path named outlet parent are incorrect #42191

@RSalo

Description

@RSalo

Bug Report

Affected Package

Angular 11 and lower

Is this a regression?

Yes

Description

I have 2 outlets. Primary - for child pages. Main-page - using only to display main page template. It can not to work if outlet is root of router tree.

Minimal Reproduction

https://stackblitz.com/edit/outlet-example-veyabe
After clicking on the "Link to innerRoute" there is should to show another page. But it's not.

Exception or Error


Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'innerRoute'
Error: Cannot match any routes. URL Segment: 'innerRoute'

Your Environment

Angular Version:


angular 12 fresh install

Anything else relevant?
Are there related issues? Sorry if there are exist any.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions