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('/'); }