Skip to content

Commit

Permalink
Fix login redirect problems. (ngoduykhanh#270)
Browse files Browse the repository at this point in the history
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 ngoduykhanh#259.
  • Loading branch information
systemcrash authored Dec 13, 2022
1 parent de6ad05 commit d32064d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
if (nextURL) {
window.location.href = nextURL;
} else {
window.location.href = '/wireguard/';
window.location.href = '/{{.basePath}}';
}
}
</script>
Expand Down

0 comments on commit d32064d

Please sign in to comment.