From 1fb62f774bf5e9e6b68c04d756b32177697e55e8 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Wed, 1 Mar 2023 23:03:56 +0330 Subject: [PATCH] fix(router): make url from router respect empty sectionList --- core/router/src/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/router/src/core.ts b/core/router/src/core.ts index 2687265c6..117a4d2e2 100644 --- a/core/router/src/core.ts +++ b/core/router/src/core.ts @@ -98,7 +98,7 @@ export const url = (route: Partial): string => { let href = ''; - if (Array.isArray(route.sectionList) && route.sectionList.length > 0) { + if (Array.isArray(route.sectionList)) { href += documentBaseUrl + route.sectionList.join('/'); }