fix trailing slash mismatch in dev vs build in docs example (#4912)
This commit is contained in:
parent
670d4bed45
commit
d8e796e960
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
---
|
||||
|
|
Loading…
Reference in a new issue