# HG changeset patch # User Kim Alvefur # Date 1757185077 -7200 # Node ID 6216d85162dcfa80fde1f112ef008f8763235779 # Parent f110bce356309fbdfb42e8472bdde8a012f5ab00 mod_invites_register_web: Fix loading resources from relative paths Both module:get_option_path and module:load_resource makes the path relative to the plugin resource directory, so when running form a source checkout where this path is relative, the path was expanded relative to itself, becoming duplicated. diff -r f110bce35630 -r 6216d85162dc mod_invites_register_web/mod_invites_register_web.lua --- a/mod_invites_register_web/mod_invites_register_web.lua Sat Sep 06 21:02:26 2025 +0200 +++ b/mod_invites_register_web/mod_invites_register_web.lua Sat Sep 06 20:57:57 2025 +0200 @@ -34,7 +34,7 @@ local invites = module:depends("invites"); local invites_page = module:depends("invites_page"); -local template_path = module:get_option_path("invites_register_template_path", "html"); +local template_path = module:get_option_string("invites_register_template_path", "html"); function serve_register_page(event) local register_page_template = assert(module:load_resource(template_path .. "/register.html")):read("*a");