diff --git a/server.ts b/server.ts index 8b80b306cf..2f66c78d86 100644 --- a/server.ts +++ b/server.ts @@ -322,7 +322,7 @@ function clientSideRender(req, res) { ); // Replace REST URL with UI URL - if (environment.universal.replaceRestUrl && REST_BASE_URL !== environment.rest.baseUrl) { + if (environment.ssr.replaceRestUrl && REST_BASE_URL !== environment.rest.baseUrl) { html = html.replace(new RegExp(REST_BASE_URL, 'g'), environment.rest.baseUrl); }