Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 4fd4bb5

Browse files
ejuorakannimer
authored andcommitted
fix(gatsby-theme-docz): non-latin anchor link (#1240)
1 parent 01d456d commit 4fd4bb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/gatsby-theme-docz/src/components/NavLink/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const getCurrentHash = () => {
1717
if (typeof window === 'undefined') {
1818
return ''
1919
}
20-
return window.location ? window.location.hash : ''
20+
return window.location ? decodeURI(window.location.hash) : ''
2121
}
2222

2323
export const NavLink = React.forwardRef(({ item, ...props }, ref) => {

0 commit comments

Comments
 (0)