mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
loader.js: Navigate back if redirect target is __BACK__
This commit is contained in:
parent
10d8715d1d
commit
42e596f457
@ -457,6 +457,10 @@
|
|||||||
// redirect to the link's URL instead of the current window's URL (see above)
|
// redirect to the link's URL instead of the current window's URL (see above)
|
||||||
redirect = redirect.replace(/__SELF__/, req.url);
|
redirect = redirect.replace(/__SELF__/, req.url);
|
||||||
}
|
}
|
||||||
|
} else if (redirect.match(/__BACK__/)) {
|
||||||
|
// Navigate back, no redirect desired
|
||||||
|
window.history.back();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
var useHttp = req.getResponseHeader('X-Icinga-Redirect-Http');
|
var useHttp = req.getResponseHeader('X-Icinga-Redirect-Http');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user