Skip to content

Commit 81df4b5

Browse files
committed
[IIIF-148] Fix index calculation
1 parent 0b86416 commit 81df4b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/item-page/mirador-viewer/mirador-viewer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class MiradorViewerComponent implements OnInit {
101101
viewerPath += `&canvasId=${this.canvasId}`;
102102
}
103103
if (this.canvasIndex) {
104-
viewerPath += `&canvasIndex=${this.canvasIndex}`;
104+
viewerPath += `&canvasIndex=${parseInt(this.canvasIndex, 10) - 1}`;
105105
}
106106
if (environment.mirador.enableDownloadPlugin) {
107107
viewerPath += '&enableDownloadPlugin=true';

0 commit comments

Comments
 (0)