Skip to content

Commit

Permalink
fix: the link property value of SidebarItem does not support Chinese …
Browse files Browse the repository at this point in the history
…characters (#189)

* fix: the link property value of SidebarItem does not support Chinese characters

* fix: lint error
  • Loading branch information
codersjj committed Aug 4, 2023
1 parent 51b8bc8 commit 0d08adf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/island/src/theme-default/logic/useSidebarData.ts
Expand Up @@ -10,6 +10,8 @@ interface SidebarData {
}

export function useSidebarData(currentPathname: string): SidebarData {
currentPathname = decodeURIComponent(currentPathname);

const localeData = useLocaleSiteData();
const sidebar = localeData.sidebar ?? {};
for (const name of Object.keys(sidebar)) {
Expand Down

1 comment on commit 0d08adf

@vercel
Copy link

@vercel vercel bot commented on 0d08adf Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.