diff --git a/static/pdf.js/pdf.js b/static/pdf.js/pdf.js index fda47cbe1..5307a4f99 100644 --- a/static/pdf.js/pdf.js +++ b/static/pdf.js/pdf.js @@ -21,7 +21,7 @@ if (typeof PDFJS === 'undefined') { } PDFJS.version = '0.8.798'; -PDFJS.build = '25c476a'; +PDFJS.build = '5cd9fec'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/static/pdf.js/pdf.worker.js b/static/pdf.js/pdf.worker.js index 3868c8813..cb4bf53f3 100644 --- a/static/pdf.js/pdf.worker.js +++ b/static/pdf.js/pdf.worker.js @@ -21,7 +21,7 @@ if (typeof PDFJS === 'undefined') { } PDFJS.version = '0.8.798'; -PDFJS.build = '25c476a'; +PDFJS.build = '5cd9fec'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/static/pdf.js/viewer.js b/static/pdf.js/viewer.js index 2c39cd8a6..08cbaea18 100644 --- a/static/pdf.js/viewer.js +++ b/static/pdf.js/viewer.js @@ -4978,7 +4978,10 @@ function updateViewarea() { }); var href = PDFView.getAnchorUrl(pdfOpenParams); document.getElementById('viewBookmark').href = href; - document.location.hash = '#page=' + pageNumber; + document.getElementById('secondaryViewBookmark').href = href; + + // Update the current bookmark in the browsing history. + PDFHistory.updateCurrentBookmark(pdfOpenParams, pageNumber); } window.addEventListener('resize', function webViewerResize(evt) {