mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Add UI nameSpace context path to Mirador viewer path
(cherry picked from commit 3228c457a3
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
5eb62e22eb
commit
fba30781de
@@ -70,7 +70,8 @@ export class MiradorViewerComponent implements OnInit {
|
||||
const manifestApiEndpoint = encodeURIComponent(environment.rest.baseUrl + '/iiif/'
|
||||
+ this.object.id + '/manifest');
|
||||
// The Express path to Mirador viewer.
|
||||
let viewerPath = '/iiif/mirador/index.html?manifest=' + manifestApiEndpoint;
|
||||
let viewerPath = `${environment.ui.nameSpace}${environment.ui.nameSpace.length > 1 ? '/' : ''}`
|
||||
+ `iiif/mirador/index.html?manifest=${manifestApiEndpoint}`;
|
||||
if (this.searchable) {
|
||||
// Tell the viewer add search to menu.
|
||||
viewerPath += '&searchable=' + this.searchable;
|
||||
|
Reference in New Issue
Block a user