X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/8af0564fcfd167565cdb6488fe30a2cfdb0740e0..a410d476a22053a8e7ffda483efbb1959be9d713:/src/assets/js/controller.js diff --git a/src/assets/js/controller.js b/src/assets/js/controller.js index 56c7d00..a9cb80e 100644 --- a/src/assets/js/controller.js +++ b/src/assets/js/controller.js @@ -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').length !== 0) return; e.preventDefault(); e.stopPropagation();