Fix content URL gen
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dominic Grimm 2022-08-03 09:40:35 +02:00
parent 23a094c36e
commit 62bdf3f1d9

View file

@ -26,5 +26,5 @@ export async function fetchData(): Promise<Data> {
} }
export function generateContentURL(content: string): URL { export function generateContentURL(content: string): URL {
return new URL(encodeURIComponent(content), CONTENT_ROOT_URL); return new URL(`/${encodeURIComponent(content)}`, CONTENT_ROOT_URL);
} }