auto_route_library
auto_route_library copied to clipboard
Web addresses do not change if a route is initial route
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 I couldn't reproduce this, it works every-time. are you on the latest version? could you create a gist or something?
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