Skip to content

Commit f9a9649

Browse files
committed
[IIIF-148] Fix index calculation
1 parent 2559f35 commit f9a9649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class MiradorViewerComponent implements OnInit {
104104
viewerPath += `&canvasId=${this.canvasId}`;
105105
}
106106
if (this.canvasIndex) {
107-
viewerPath += `&canvasIndex=${this.canvasIndex}`;
107+
viewerPath += `&canvasIndex=${parseInt(this.canvasIndex, 10) - 1}`;
108108
}
109109

110110
// TODO: Should the query term be trusted here?

0 commit comments

Comments
 (0)