Retain detail URL if the layout is rerendered after a redirect

refs #8605
This commit is contained in:
Eric Lippmann 2015-03-13 04:04:58 +01:00
parent 1bd2e7cb84
commit 2e1ae185fb
1 changed files with 6 additions and 0 deletions

View File

@ -292,6 +292,12 @@
r.url = redirect;
if (parts.length) {
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 {