Get rid of ?venotify= from URL post-save

Use history.replaceState if available to get rid of the venotify query
parameter to avoid polluting URLs.

Ideally this would just use a cookie like the core post-edit
notification.

Change-Id: I6ce142012053e2fc18dd44fd0f7b82914acea076
This commit is contained in:
Kunal Mehta 2016-10-12 11:05:12 -07:00
parent 00af103293
commit 6c93a49244

View file

@ -1047,6 +1047,10 @@
} ); } );
delete uri.query.venotify; delete uri.query.venotify;
// Get rid of the ?venotify= from the URL
if ( history.replaceState ) {
history.replaceState( null, document.title, uri );
}
} }
} ); } );
}() ); }() );