auto_route_library icon indicating copy to clipboard operation
auto_route_library copied to clipboard

Redirect with wildcard

Open Aqua-Ye opened this issue 1 year ago • 2 comments

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 avatar Aug 11 '22 09:08 Aqua-Ye

@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',
    ),

Milad-Akarie avatar Aug 15 '22 14:08 Milad-Akarie

@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!

Aqua-Ye avatar Aug 18 '22 13:08 Aqua-Ye

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

github-actions[bot] avatar Dec 04 '22 08:12 github-actions[bot]