# HG changeset patch # User Kim Alvefur # Date 1557738799 -7200 # Node ID 00a848ede42dd85a22e2ccbdc9afedfbf4e99271 # Parent b66111f75e4b3f602bdeea748d33e93b1e6f0ffa mod_http_muc_log: Preserve ?query part in redirect diff -r b66111f75e4b -r 00a848ede42d mod_http_muc_log/mod_http_muc_log.lua --- 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");