TF-2134 Remove the leading hash(#) from the URL of web
(cherry picked from commit b8869508362a4fdc65ef0b222da02474e9487fc4)
This commit is contained in:
@@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user