Skip to content

Commit

Permalink
fix(router): make url from router respect empty sectionList
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd authored and njfamirm committed Mar 2, 2023
1 parent 5b9bc47 commit 1fb62f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/router/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const url = (route: Partial<RouteContextBase>): string => {

let href = '';

if (Array.isArray(route.sectionList) && route.sectionList.length > 0) {
if (Array.isArray(route.sectionList)) {
href += documentBaseUrl + route.sectionList.join('/');
}

Expand Down

0 comments on commit 1fb62f7

Please sign in to comment.