X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/39227d69e04802bce7d29ef2360829effaf99c6a..2e0ac271f2e1f9d8516dc303ef68e4903374fb0b:/src/assets/js/controller.js?ds=sidebyside diff --git a/src/assets/js/controller.js b/src/assets/js/controller.js index 6795cc6..364e8f2 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';