X Tutup
Skip to content

Route.useAsDefault does not change the URL #5590

@matanlurey

Description

@matanlurey

Reproduction case:

Add the following HTML and Dart:

<a href="/meetings">Go to meetings</a>

Root component:

@RouteConfig(const [
  const Route(name: 'Meetings', path: '/meetings/...', loader: ...)
])

Child component:

@RouteConfig(const [
  const Route(name: 'Coverage', path: 'coverage', useAsDefault: true, component: ...)
])

Intended behavior

Clicking the anchor tag navigates to meetings/coverage component. URL reflects the change.

Actual behavior

The component is loaded, but the URL stays as meetings (missing /coverage).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup