auto_route_library icon indicating copy to clipboard operation
auto_route_library copied to clipboard

Web addresses do not change if a route is initial route

Open resfandiari opened this issue 2 years ago • 2 comments

Thanks for the great package, Nested navigation works best for me but I have a problem, When returning to the initial route from another route, I would like the website address to change. What should I do?

example: Initial route => example.com navigate to another route=>example.com/another back to initial route =>example.com/another but i want this=>example.com

    /// App Stack
    AutoRoute(page: DashboardPage, initial: true, path: DashboardPage.path,
        // initial: true,
        children: [
          /// Monitor
          AutoRoute(
              page: MonitorPage,
              initial: true,
              path: MonitorPage.pathName,
              name: MonitorPage.routeName),

          /// Task
          AutoRoute(
              page: EmptyRouterPage,
              path: TaskPage.pathName,
              name: TaskPage.routeName,
              children: [
                AutoRoute(page: TaskPage, initial: true),
                AutoRoute(
                  page: TaskNewPage,
                  path: TaskNewPage.pathName,
                ),
              ]),
          
        ]),

i use this method for navigation

context.navigateNamedTo('/dashboard/task');

back to initial route

 context.navigateNamedTo('/dashboard');

resfandiari avatar Oct 16 '21 10:10 resfandiari

@resfandiari I couldn't reproduce this, it works every-time. are you on the latest version? could you create a gist or something?

Milad-Akarie avatar Oct 18 '21 07:10 Milad-Akarie

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 Aug 14 '22 08:08 github-actions[bot]