]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/assets/js/controller.js
dont intercept links in last-updated page section
[nominatim-ui.git] / src / assets / js / controller.js
index 56c7d009944c63ec677e3a7fb76985788eba9183..9975ba7011c6686f6641a233bd4ed88897132338 100644 (file)
@@ -22,7 +22,6 @@ jQuery(document).ready(function () {
 
   function is_relative_url(url) {
     if (!url) return false;
-    if (url.match(/debug=1/)) return false;
     if (url.indexOf('?') === 0) return true;
     if (url.indexOf('/') === 0) return true;
     if (url.indexOf('#') === 0) return false;
@@ -64,6 +63,7 @@ jQuery(document).ready(function () {
   $(document).on('click', 'a', function (e) {
     var target_url = $(this).attr('href');
     if (!is_relative_url(target_url)) return;
+    if ($(this).parents('#last-updated')) return;
 
     e.preventDefault();
     e.stopPropagation();