In DSpace 8+ "environment.universal" is renamed "environment.ssr"

This commit is contained in:
Tim Donohue
2025-10-13 15:01:44 -05:00
parent 791b022ced
commit 6ae5f98c7f

View File

@@ -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);
}