Skip to content

Commit

Permalink
fix(gatsby-theme-docz): non-latin anchor link (#1240)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejuo authored and rakannimer committed Nov 8, 2019
1 parent 01d456d commit 4fd4bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/gatsby-theme-docz/src/components/NavLink/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const getCurrentHash = () => {
if (typeof window === 'undefined') {
return ''
}
return window.location ? window.location.hash : ''
return window.location ? decodeURI(window.location.hash) : ''
}

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

0 comments on commit 4fd4bb5

Please sign in to comment.