I have found a javascript solution. Here is the code:
member.js (needs jQuery)
$jq = jQuery.noConflict();
$jq(document).ready(function () {
redirect_on_save_func();
});
function redirect_on_save_func() {
var qvars = get_query_func();
var nq = [];
$jq.each(qvars, function (vk, vv) {
if (vk.match('meta_warning*') == null)
nq.push(vk + '=' + encodeURIComponent(vv));
});
var hr = window.location.href;
var nqs = hr.split('?')[0] + '?' + nq.join('&');
window.history.pushState({}, null, nqs);
}
function get_query_func() {
var pairs = window.location.search.substring(1).split("&"),
obj = {},
pair,
i;
for (i in pairs) {
if (pairs[i] === "") continue;
pair = pairs[i].split("=");
obj[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
}
return obj;
}