--- a/mod_http_muc_log/mod_http_muc_log.lua Sat Nov 08 16:41:31 2014 +0100
+++ b/mod_http_muc_log/mod_http_muc_log.lua Sun Nov 09 08:32:43 2014 +0100
@@ -93,7 +93,7 @@
body = [[
<nav>
<a class="prev" href="{prev}">←</a>
-<a class="up" href="../{room}">↑</a>
+<a class="up" href=".">↑</a>
<a class="next" href="{next}">→</a>
</nav>
<ul>
@@ -127,7 +127,7 @@
});
local room_item_template = template[[
-<dt><a href="{room}">{name}</a></dt>
+<dt><a href="{room}/">{name}</a></dt>
<dd>{description?}</dd>
]];
@@ -139,10 +139,10 @@
end
-- FIXME Invent some more efficient API for this
-local function dates_page(event, room)
+local function dates_page(event, path)
local request, response = event.request, event.response;
- room = nodeprep(room);
+ local room = nodeprep(path:match("^(.*)/$"));
if not room or not public_room(room) then return end
local dates, i = {}, 1;