Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

[Question] Redirect from parent to root #234

Answered by csells
princestha asked this question in Q&A
Discussion options

You must be logged in to vote

@princestha You probably want something like this:

GoRoute(path: '/user', redirect: (_) => '/user/default_user_id'),
GoRoute(path: '/user/:uid', builder: (c,s) => UserDetailsScreen(uid: s.params['uid'])),

Does that make sense?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@princestha
Comment options

@csells
Comment options

@princestha
Comment options

Answer selected by princestha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants