File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/flet/lib/src/routing Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -6,20 +6,26 @@ class RouteParser extends RouteInformationParser<String> {
66 RouteInformation routeInformation) async {
77 final uri = routeInformation.uri;
88
9+ debugPrint ("RouteParser.parseRouteInformation: $uri " );
10+
911 final normalized = Uri (
1012 path: uri.path.isEmpty ? '/' : uri.path,
1113 query: uri.query,
1214 fragment: uri.fragment,
1315 );
1416
17+ debugPrint ("RouteParser.parseRouteInformation normalized: $normalized " );
18+
1519 // Return a location string like "/aaa?x=1"
1620 return normalized.toString ();
1721 }
1822
1923 @override
2024 RouteInformation restoreRouteInformation (String configuration) {
25+ debugPrint ("RouteParser.restoreRouteInformation: $configuration " );
2126 // Ensure Router gets a path-based URI, not "flet://..."
2227 final uri = Uri .parse (configuration);
28+ debugPrint ("RouteParser.restoreRouteInformation: after" );
2329 final normalized = Uri (
2430 path: uri.path.isEmpty ? '/' : uri.path,
2531 query: uri.query,
You can’t perform that action at this time.
0 commit comments