From ab3f25ef4355777307ab12abf562d19f7fc0a383 Mon Sep 17 00:00:00 2001 From: BigBlueHat Date: Thu, 18 Jun 2015 15:55:47 -0400 Subject: [PATCH] Add Hypothes.is tweaks back --- viewer/web/viewer.html | 2 ++ viewer/web/viewer.js | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/viewer/web/viewer.html b/viewer/web/viewer.html index b3af4ad..4f8307a 100755 --- a/viewer/web/viewer.html +++ b/viewer/web/viewer.html @@ -413,6 +413,8 @@ + + diff --git a/viewer/web/viewer.js b/viewer/web/viewer.js index 15d8465..e3fefaf 100755 --- a/viewer/web/viewer.js +++ b/viewer/web/viewer.js @@ -5945,6 +5945,12 @@ var PDFViewerApplication = { setTitleUsingUrl: function pdfViewSetTitleUsingUrl(url) { this.url = url; + + var rel_canonical = document.createElement('link'); + rel_canonical.href = url; + rel_canonical.rel = "canonical"; + document.head.appendChild(rel_canonical); + try { this.setTitle(decodeURIComponent(getFileName(url)) || url); } catch (e) {