diff --git a/lib/app_sources/html.dart b/lib/app_sources/html.dart index 753e3f1..47dc5ff 100644 --- a/lib/app_sources/html.dart +++ b/lib/app_sources/html.dart @@ -18,7 +18,7 @@ String ensureAbsoluteUrl(String ambiguousUrl, Uri referenceAbsoluteUrl) { .toList(); if (ambiguousUrl.startsWith('/') || currPathSegments.isEmpty) { return '${referenceAbsoluteUrl.origin}/$ambiguousUrl'; - } else if (ambiguousUrl.split('/').length == 1) { + } else if (ambiguousUrl.split('/').where((e) => e.isNotEmpty).length == 1) { return '${referenceAbsoluteUrl.origin}/${currPathSegments.join('/')}/$ambiguousUrl'; } else { return '${referenceAbsoluteUrl.origin}/${currPathSegments.sublist(0, currPathSegments.length - 1).join('/')}/$ambiguousUrl'; diff --git a/lib/main.dart b/lib/main.dart index b3fdbd7..282048f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -19,7 +19,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart'; // ignore: implementation_imports import 'package:easy_localization/src/localization.dart'; -const String currentVersion = '0.14.7'; +const String currentVersion = '0.14.8'; const String currentReleaseTag = 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES diff --git a/pubspec.yaml b/pubspec.yaml index 13a2449..b3a239d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.14.7+199 # When changing this, update the tag in main() accordingly +version: 0.14.8+200 # When changing this, update the tag in main() accordingly environment: sdk: '>=2.18.2 <3.0.0'