Skip to content

Commit

Permalink
fix: Support SideNav paths with special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
icaraps committed Oct 18, 2020
1 parent 7ee1f7e commit af3ee52
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ const toggleSideNav = (setShowSideNav) => {
};

export default ({ children, pageContext, location }) => {
location.pathname = decodeURIComponent(location.pathname);

const { locale, direction } = useLocale();

// Load all data once and pass it to the Provider
Expand Down

0 comments on commit af3ee52

Please sign in to comment.