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

View File

@ -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 {