1
0
Fork 0

Fixed relocation url for sub urls in web interface

This commit is contained in:
Michael Hackstein 2013-11-08 10:31:00 +01:00
parent b0cf923110
commit f0603a9e3a
1 changed files with 8 additions and 1 deletions

View File

@ -63,7 +63,14 @@
+ encodeURIComponent(name)
+ "/_admin/aardvark/index.html";
if (hash) {
url += hash;
var base = hash.split("/")[0];
if (base.indexOf("#collection") === 0) {
base = "#collections";
}
if (base.indexOf("#application") === 0) {
base = "#applications";
}
url += base;
}
return url;
},