From 3aec58719b05abd483569eb35d347447cefb5eb5 Mon Sep 17 00:00:00 2001 From: dreamer Date: Mon, 13 Apr 2026 21:27:08 +0200 Subject: [PATCH] don't remove leading slash --- code/handlers/roothandler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/handlers/roothandler.lua b/code/handlers/roothandler.lua index 9ff4970..79b540f 100644 --- a/code/handlers/roothandler.lua +++ b/code/handlers/roothandler.lua @@ -11,7 +11,7 @@ local function Roothandler(self) local latest_path, latest_name = hotmixes.utils.these_latest( path ) self.total = hotmixes.utils.total_files_dir( path ) - self.uri = hotmixes.utils.request_path:sub(2) -- remove leading slash + self.uri = hotmixes.utils.request_path self.path = '/data/' .. self.titles.url .. hotmixes.utils.request_path self.dirs = stuff.dirs self.files = stuff.files