i'm trying to change urls without reloading the browser , i've used history.pushState
it show the new url but not reloading the page till i'll reload the browser manually
function change_url(url) {
history.pushState(null, null, url);
}
<button onclick="change_url('/');" class="btn btn-primary dim btn-dim" id="btn-main" type="button"><i class="fas fa-home"> </i> main</button>
<button onclick="change_url('/parts/');" class="btn btn-warning dim btn-dim" type="button"><i class="fas fa-grip-horizontal"> </i> parts </button></a>