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

This commit is contained in:
Dominic Grimm 2022-08-04 11:26:52 +02:00
parent f0acdc88ec
commit 5355a5124f

View file

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