diff --git a/CHANGELOG.md b/CHANGELOG.md index 66f4a9e..525f877 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 4.15.2 +## 4.15.3 - fix: url is missing / at the beginning diff --git a/lib/src/navigator/navigator_route_settings.dart b/lib/src/navigator/navigator_route_settings.dart index 0b0455e..55289d5 100644 --- a/lib/src/navigator/navigator_route_settings.dart +++ b/lib/src/navigator/navigator_route_settings.dart @@ -174,6 +174,8 @@ extension NavigatorRouteSettings on RouteSettings { // 补充 / 使其成为正常的 url if (!u.startsWith('/')) { _urlOf[this] = '/$u'; + } else { + _urlOf[this] = u; } } } diff --git a/pubspec.yaml b/pubspec.yaml index f11b95b..fb8f1d6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_thrio description: Thrio makes it easy and fast to add flutter to existing mobile applications, and provide a simple and consistent navigator APIs. -version: 4.15.2 +version: 4.15.3 homepage: https://github.com/flutter-thrio/flutter_thrio environment: