If you would like to replace a URL without page refresh.
I need to change:
Use '
I need to change:
https://example.com/en/SitePages/Projects.aspx
tohttps://example.com/en/SitePages/ProjectsProduction.aspx
Use '
history.pushState'
like this:history.pushState(null, null, '/en/SitePages/ProjectsProduction.aspx
');