From 97ff24dbf0fe204d383a6b54cb0cdc0ac5a39e79 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Mon, 4 Dec 2017 15:30:20 -0500
Subject: [PATCH] Fix regression: hash links not working in lightbox.

---
 themes/bootstrap3/js/lightbox.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/themes/bootstrap3/js/lightbox.js b/themes/bootstrap3/js/lightbox.js
index 06fb8ea4193..7156a2152e2 100644
--- a/themes/bootstrap3/js/lightbox.js
+++ b/themes/bootstrap3/js/lightbox.js
@@ -219,7 +219,8 @@ VuFind.register('lightbox', function Lightbox() {
    */
   _constrainLink = function constrainLink(event) {
     if (typeof $(this).data('lightboxIgnore') != 'undefined'
-      || typeof this.attributes.href === 'undefined' || this.href.charAt(0) === '#'
+      || typeof this.attributes.href === 'undefined'
+      || this.attributes.href.value.charAt(0) === '#'
       || this.href.match(/^[a-zA-Z]+\:[^\/]/) // ignore resource identifiers (mailto:, tel:, etc.)
     ) {
       return true;
-- 
GitLab