fix: broken url sometimes when finishing installation,go to wrong application url

This commit is contained in:
Richard Mura 2019-12-21 21:49:14 +02:00
parent 61ab18dd32
commit bef5be71af
1 changed files with 2 additions and 4 deletions

View File

@ -20,10 +20,8 @@
<script>
function finish() {
lastIndex = window.location.href.lastIndexOf("/");
secondlast = window.location.href.slice(0, lastIndex).lastIndexOf("/");
next = window.location.href.slice(0, secondlast);
next = window.location.href.split("/installer")[0];
next = next.concat('/admin/login');
window.location.href = next;
}
</script>
</script>