Skip to content

[go_router] Prevent access to route when navigated to via a deep link #103659

Closed
flutter/packages
#5742
@DamienMrtl

Description

@DamienMrtl

Use case

Prevent access to a route with deeplink.
In the redirect function I would like to detect if the navigation event is a deeplink and redirect to the parent route.

Proposal

Add a bool in the state that says if its deeplink or not

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: go_routerThe go_router packagepackageflutter/packages repository. See also p: labels.team-go_routerOwned by Go Router teamtriaged-go_routerTriaged by Go Router team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions