mod_http_muc_log/mod_http_muc_log.lua
changeset 3599 00a848ede42d
parent 3598 b66111f75e4b
child 3600 6e529f53b3c3
--- a/mod_http_muc_log/mod_http_muc_log.lua	Mon May 13 11:10:41 2019 +0200
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Mon May 13 11:13:19 2019 +0200
@@ -262,7 +262,7 @@
 	end
 	if date == "latest" then
 		local last_day = find_once(room, { reverse = true }, 3);
-		response.headers.location = datetime.date(last_day);
+		response.headers.location = url.build({ path = datetime.date(last_day), query = request.url.query });
 		return 303;
 	end
 	local day_start = datetime.parse(date.."T00:00:00Z");