Skip to content

Commit 22f5c40

Browse files
Merge pull request #242 from sapomemey/feature/connectRouter
Update bootstrap-utils.ts
2 parents d2e6b5e + 12b3d8d commit 22f5c40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/mf-tools/src/lib/web-components/bootstrap-utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,12 @@ function shareShellZone(injector: Injector) {
211211

212212
function connectMicroFrontendRouter(injector: Injector) {
213213
const router = injector.get(Router);
214+
const useHash = location.href.includes('#');
214215

215216
if (!router) {
216217
console.warn('No router to connect found');
217218
return;
218219
}
219220

220-
connectRouter(router);
221+
connectRouter(router, useHash);
221222
}

0 commit comments

Comments
 (0)