Skip to content

CSR ignores namespace configuration causing broken resource loading #4637

@milanmajchrak

Description

@milanmajchrak

Describe the bug

DSpace 7.6.5.
When DSpace is configured with a namespace (e.g., /repository), Server-Side Rendering (SSR) correctly handles the base href, but Client-Side Rendering (CSR) serve the original index.html with <base href="/">, causing the browser to request JavaScript resources from the wrong path.

To Reproduce

  1. Configure DSpace with ui.nameSpace: /repository
  2. Exclude SSR for the ^/search$" page
  3. Go to the /repository/search and refresh the page

Expected behavior

The search page should load, but instead a blank page is displayed.

PR: #4638

Metadata

Metadata

Assignees

Labels

affects: 7.xIssue impacts 7.x releasesaffects: 8.xIssue impacts 8.x releasesaffects: 9.xIssue impacts 9.x releasesbug

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions