X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/39227d69e04802bce7d29ef2360829effaf99c6a..2bcbaf5c3cc9abc5ad65393d17bf8708553cf539:/src/assets/js/controller.js diff --git a/src/assets/js/controller.js b/src/assets/js/controller.js index 6795cc6..a9cb80e 100644 --- a/src/assets/js/controller.js +++ b/src/assets/js/controller.js @@ -3,7 +3,7 @@ jQuery(document).ready(function () { function parse_url_and_load_page() { // 'search', 'reverse', 'details' - var pagename = window.location.pathname.replace('.html', '').replace(/.+\//, ''); + var pagename = window.location.pathname.replace('.html', '').replace(/^.*\//, ''); if (pagename === '') pagename = 'search'; @@ -63,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();