Skip to content

Commit ec32cd4

Browse files
committed
In DSpace 8+ "environment.universal" is renamed "environment.ssr"
1 parent 7bc173c commit ec32cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ function clientSideRender(req, res) {
323323
);
324324

325325
// Replace REST URL with UI URL
326-
if (environment.universal.replaceRestUrl && REST_BASE_URL !== environment.rest.baseUrl) {
326+
if (environment.ssr.replaceRestUrl && REST_BASE_URL !== environment.rest.baseUrl) {
327327
html = html.replace(new RegExp(REST_BASE_URL, 'g'), environment.rest.baseUrl);
328328
}
329329

0 commit comments

Comments
 (0)