In this case, i just want to concat the value of id
in the end of my url.
Anyway I just found out the solution.
I want to add value in the url.
My current URL is
localhost:1000//settings/tab=contact-types
Lets say i have this function
function view(id){ #lets say the value of id is 1
localhost:1000//settings/tab=contact-types/1 #i want the current url look like this
}
I have button in every row of my table and when I clicked it will run the view()
function and show modal for viewing.
I want to add the specific value of my parameter in the url without reloading/relocating the page.