Add UI nameSpace context path to Mirador viewer path

(cherry picked from commit 3228c457a3)
This commit is contained in:
William Welling
2023-11-01 14:39:08 -05:00
committed by github-actions[bot]
parent 5eb62e22eb
commit fba30781de

View File

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