Jquery ajax – Dynamic URL for ajax request
I'm trying to create a search field on the top navbar with ajax. Since it's on the navbar, it has to be present on all pages, therefore the URL is constantly changing. $.ajax({ type: 'GET', url: CURRENT_URL, dataType: 'json', data:…