fix: broken url sometimes when finishing installation,go to wrong application url
This commit is contained in:
parent
61ab18dd32
commit
bef5be71af
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue