Let assume I'm on page www.example.com. Can I add /first to the URL so that it becomes www.example.com/first on click WITHOUT refreshing the page. I'm trying to do this after an AJAX request which changes the page, so that I could indicate the page has been changed.
For example:
$('.admin-categories').on('click', function(){
$.ajax({
type: 'POST',
url : adminCategories,
headers: {
'X-CSRF-TOKEN': token
},
success : function (data) {
$(".admin-container").html(data);
}
});
});
Can I append /categories to the URL on success of this AJAX call?