mod_welcome_page/html: Fix form target if path isn't /
authorKim Alvefur <zash@zash.se>
Mon, 12 Oct 2020 18:38:36 +0200
changeset 4196 1be37846314a
parent 4195 e2728b540223
child 4197 8d1e996034ee
mod_welcome_page/html: Fix form target if path isn't / action="/" only works if http_paths.welcome_page="/" while "" should work as long as the GET and POST URLs are the same.
mod_welcome_page/html/index.html
--- a/mod_welcome_page/html/index.html	Mon Oct 12 18:04:05 2020 +0200
+++ b/mod_welcome_page/html/index.html	Mon Oct 12 18:38:36 2020 +0200
@@ -40,7 +40,7 @@
 			{message.text}
 		</div>}
 
-		<form method="POST" action="/" class="d-inline">
+		<form method="POST" action="" class="d-inline">
 		<button class="btn btn-primary btn-lg mb-2" type="submit">Create account</button>
 		</form>