diff --git a/src/structure/document.js b/src/structure/document.js index f898d53d9..6c05a795a 100644 --- a/src/structure/document.js +++ b/src/structure/document.js @@ -42,7 +42,7 @@ export class Document extends Svue { return [id, slug].join("-"); }, canonicalUrl(slugId) { - return `${APP_URL}documents/${slugId}`; + return new URL(`documents/${slugId}`, APP_URL).toString(); }, pageHashUrl() { return (page) => `#document/p${page}`;