Skip to content

Commit

Permalink
Add UI nameSpace context path to Mirador viewer path
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Nov 1, 2023
1 parent e1e2941 commit 3228c45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/item-page/mirador-viewer/mirador-viewer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3228c45

Please sign in to comment.