changeset 4174:e56b6b6852ae

mod_invites_register_web: Fix bug where invalid invite code redirected to wrong URL
author Matthew Wild <mwild1@gmail.com>
date Tue, 06 Oct 2020 16:06:24 +0100
parents dfa885f815eb
children 39d1a4ecdee6
files mod_invites_register_web/mod_invites_register_web.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_invites_register_web/mod_invites_register_web.lua	Tue Oct 06 16:05:30 2020 +0100
+++ b/mod_invites_register_web/mod_invites_register_web.lua	Tue Oct 06 16:06:24 2020 +0100
@@ -38,7 +38,7 @@
 		return {
 			status_code = 303;
 			headers = {
-				["Location"] = invites.module:http_url().."?"..(event.request.url.query or "");
+				["Location"] = invites_page.module:http_url().."?"..(event.request.url.query or "");
 			};
 		};
 	end