Enable path-based URL routing for clean share links

This commit is contained in:
Leon Bösche
2026-01-25 16:45:33 +01:00
parent a451ae8a98
commit 7a58769139

View File

@@ -18,6 +18,7 @@ import 'injection.dart';
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:web/web.dart' as web;
import 'package:flutter_web_plugins/url_strategy.dart';
final GoRouter _router = GoRouter(
initialLocation: kIsWeb
@@ -58,6 +59,9 @@ final GoRouter _router = GoRouter(
);
void main() {
if (kIsWeb) {
setUrlStrategy(PathUrlStrategy());
}
runApp(const MainApp());
}