From 66f6e9034eb5ebfee6cedcf666c336e6659f254a Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Wed, 5 Jun 2024 16:02:54 +0200 Subject: [PATCH] fix: use absolute path instead of relative in index resolver --- src/url_utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)