mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
History: Combined cleanup regular expression
This commit is contained in:
parent
c135d3243a
commit
6cc428d0e1
@ -105,8 +105,8 @@
|
||||
},
|
||||
|
||||
push: function (url) {
|
||||
url = url.replace(/_render=[a-z0-9]+&/, '').replace(/&_render=[a-z0-9]+/, '').replace(/\?_render=[a-z0-9]+$/, '');
|
||||
url = url.replace(/_reload=[a-z0-9]+&/, '').replace(/&_reload=[a-z0-9]+/, '').replace(/\?_reload=[a-z0-9]+$/, '');
|
||||
url = url.replace(/[\?&]?_(render|reload)=[a-z0-9]+/g, '');
|
||||
console.log("URL:", url);
|
||||
if (this.lastPushUrl === url) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user