Skip to content

Commit

Permalink
fix trailing slash mismatch in dev vs build in docs example (#4912)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishi Raj Jain authored Sep 29, 2022
1 parent 670d4be commit d8e796e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/docs/src/components/LeftSidebar/LeftSidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Props = {
};
const { currentPage } = Astro.props as Props;
const currentPageMatch = currentPage.slice(1);
const currentPageMatch = currentPage.endsWith('/') ? currentPage.slice(1, -1) : currentPage.slice(1);
const langCode = getLanguageFromURL(currentPage);
const sidebar = SIDEBAR[langCode];
---
Expand Down

0 comments on commit d8e796e

Please sign in to comment.