Rewrite URL without redirecting in jquery

Here is a simple trick to rewrite the URL of a browser without redirecting using jquery.

var newurl='/newurl/'+stagePage.PageID;
        if ( history.pushState ) 
        window.history.pushState('', '',newurl);
	
Facebook Facebook LinkedIn LinkedIn

Leave a Comment

For Gravatar icon