mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-21 20:12:33 +03:00
Fix login redirect problems.
After login, my browser gets a 404 for `/wireguard`. `wireguard` might not be explicitly set by `BASE_PATH`, so just use the `{{.basePath}}` instead. Fixes #259.
This commit is contained in:
parent
be2ffba417
commit
fc5c7dc2a8
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@
|
|||
if (nextURL) {
|
||||
window.location.href = nextURL;
|
||||
} else {
|
||||
window.location.href = '/wireguard/';
|
||||
window.location.href = '/{{.basePath}}';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue