mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
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:
parent
00af103293
commit
6c93a49244
|
@ -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 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
}() );
|
}() );
|
||||||
|
|
Loading…
Reference in a new issue