From 7ad7540921277c2386df4d5de13276b855c33acc Mon Sep 17 00:00:00 2001 From: YR Chen Date: Fri, 25 Oct 2024 19:19:39 +0800 Subject: [PATCH] fix(web): preview for `index.pdf` --- web/src/pages/Docs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/Docs.tsx b/web/src/pages/Docs.tsx index 6eb6370a..13e4f96f 100644 --- a/web/src/pages/Docs.tsx +++ b/web/src/pages/Docs.tsx @@ -160,7 +160,7 @@ export default function Docs(): JSX.Element { useEffect(() => { const urlProject = params.project ?? '' const urlVersion = params.version ?? 'latest' - const urlPage = params['*'] ?? 'index.html' + const urlPage = params['*'] ?? '' const urlHash = location.hash.split('?')[0] ?? '' const urlHideUi = searchParams.get('hide-ui') === 'true' ||