From 952b13e2aa0f1a5ffb94af1cfe803923759bb490 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Fri, 14 Jun 2024 12:17:24 +0200 Subject: [PATCH] fix(ssr): construct canonical URL properly --- ssr/render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssr/render.ts b/ssr/render.ts index ecae1daa9334..a9c8254312d7 100644 --- a/ssr/render.ts +++ b/ssr/render.ts @@ -116,7 +116,7 @@ export default function render( const buildHtml = readBuildHTML(); const rendered = renderToString(renderApp); - const canonicalURL = `${BASE_URL}{url}`; + const canonicalURL = `${BASE_URL}${url}`; let pageDescription = ""; let escapedPageTitle = htmlEscape(pageTitle);