auto_route_library
auto_route_library copied to clipboard
Redirect with wildcard
Hi,
Is there a way to have a RedirectRoute
with "wildcard"?
For example:
RedirectRoute(
path: '/profile/settings/*,
redirectTo: '/settings/*,
),
Basically I want whatever is after the original path to be passed to the redirect path.
Thanks!
@Aqua-Ye in the current implementation you only have dynamic segment redirecting, but that's a good feature it's worth implementing.
that's all you can do now
RedirectRoute(
path: '/profile/settings/:segment',
redirectTo: '/settings/:segment',
),
@Aqua-Ye in the current implementation you only have dynamic segment redirecting, but that's a good feature it's worth implementing.
that's all you can do now
RedirectRoute( path: '/profile/settings/:segment', redirectTo: '/settings/:segment', ),
I think your solution is great. Thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions