My application is a single page application ,I am using links like shown below
<a class="list-group-item navigationlink" href="#" id="roletemplates-link" data-moduleid="2">Role Templates</a>
You can see that href="#"
. On clicking that link I use ajax to load content to the page.
I want to append "#" to URL when I click that link without reloading the page. In many solutions I saw is like that the page will have to be reloaded if we want to append some values to variables.
My Question:
Is it possible to append the "#" to URL on clicking the link without reloading the page?