TF-2134 Remove the leading hash(#) from the URL of web

(cherry picked from commit b8869508362a4fdc65ef0b222da02474e9487fc4)
This commit is contained in:
dab246
2023-09-12 00:50:33 +07:00
committed by Dat Vu
parent ed6573613c
commit b1d86de5d9
4 changed files with 14 additions and 1 deletions
+3
View File
@@ -14,6 +14,7 @@ import 'package:tmail_ui_user/main/localizations/localization_service.dart';
import 'package:tmail_ui_user/main/pages/app_pages.dart';
import 'package:tmail_ui_user/main/routes/app_routes.dart';
import 'package:tmail_ui_user/main/utils/app_utils.dart';
import 'package:url_strategy/url_strategy.dart';
import 'package:worker_manager/worker_manager.dart';
void main() async {
@@ -34,6 +35,8 @@ void main() async {
]);
await HiveCacheConfig.initializeEncryptionKey();
setPathUrlStrategy();
runApp(const TMailApp());
});
}
+1 -1
View File
@@ -37,7 +37,7 @@ abstract class RouteUtils {
}
static Uri generateRouteBrowser(String route, NavigationRouter router) {
final baseRoutePath = '$baseOriginUrl/#$route';
final baseRoutePath = '$baseOriginUrl$route';
ServicePath servicePath = ServicePath(baseRoutePath);
if (router.emailId != null) {
servicePath = servicePath.withPathParameter(router.emailId!.id.value);