diff --git a/src/url_utils.ts b/src/url_utils.ts index 33d5c16..52cf68a 100644 --- a/src/url_utils.ts +++ b/src/url_utils.ts @@ -48,7 +48,7 @@ export function getRepoUrl(user: User): URL { * ``` */ export function getIndexUrl(baseUrl: URL): URL { - if (baseUrl.pathname.endsWith('./dist/')) { + if (baseUrl.pathname.endsWith('/dist/')) { return new URL('./index.html', baseUrl) } return new URL('./README.md', baseUrl)