mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Compare commits
2 Commits
a9093aa62b
...
17f5024a97
Author | SHA1 | Date | |
---|---|---|---|
![]() |
17f5024a97 | ||
![]() |
1f8bc7bdd4 |
@@ -269,6 +269,12 @@ function serverSideRender(req, res, next, sendToUser: boolean = true) {
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
.then((html) => {
|
.then((html) => {
|
||||||
|
// If headers were already sent, then do nothing else, it is probably a
|
||||||
|
// redirect response
|
||||||
|
if (res.headersSent) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (hasValue(html)) {
|
if (hasValue(html)) {
|
||||||
// Replace REST URL with UI URL
|
// Replace REST URL with UI URL
|
||||||
if (environment.ssr.replaceRestUrl && REST_BASE_URL !== environment.rest.baseUrl) {
|
if (environment.ssr.replaceRestUrl && REST_BASE_URL !== environment.rest.baseUrl) {
|
||||||
|
Reference in New Issue
Block a user