I want to change the 3rd parameter in my URL to a dynamic variable.
Eg. if my URL is http://example.com/A/B/Fixed_var_C
then i want it to be changed to http://example.com/A/B/Dynamic_C
How can i achieve it by JQuery or javascript that too while the page loads?
I tried implementing few methods but not a success. Below is one of the methods:
window.history.pushState("object or string", "Title", "/new-url");