mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
Retain detail URL if the layout is rerendered after a redirect
refs #8605
This commit is contained in:
parent
1bd2e7cb84
commit
2e1ae185fb
@ -292,6 +292,12 @@
|
|||||||
r.url = redirect;
|
r.url = redirect;
|
||||||
if (parts.length) {
|
if (parts.length) {
|
||||||
r.loadNext = parts;
|
r.loadNext = parts;
|
||||||
|
} else if (!! document.location.hash) {
|
||||||
|
// Retain detail URL if the layout is rerendered
|
||||||
|
parts = document.location.hash.split('#!').splice(1);
|
||||||
|
if (parts.length) {
|
||||||
|
r.loadNext = parts;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user