From 79724b0ec8810b3c0399b28756297cc48a97a1bb Mon Sep 17 00:00:00 2001 From: dvs1 Date: Fri, 14 Mar 2025 14:19:21 +1000 Subject: /Main/ might work better now. --- notYetAnotherWiki.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index 9f543e2..700de34 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua @@ -630,7 +630,7 @@ local Context = {} -- Coz can't otherwise pass context through to the deeper L local lunaLinky = function(url) -- Fix up the links. if ('https://wiki.devuan.org/' ~= url) and ('https://fos.wiki.devuan.org/' ~= url) then -- TODO - This might be covering up a bug elsewhere. - if '/Main/' == string.sub(url, 1, 6) then url = 'https://fos.wiki.devuan.org/' .. url end + if '/Main/' == string.sub(url, 1, 6) then url = linkFrom(Context.path, 'Foswiki/Main') .. string.sub(url, 7) .. '.HTML' end for i, p in ipairs{'https://wiki.devuan.org/?n=', 'https://wiki.devuan.org?n=', 'PmWiki/uploads/', 'Foswiki/pub/', 'https://fos.wiki.devuan.org/'} do if p == string.sub(url, 1, #p) then local ur = string.sub(url, #p + 1) -- cgit v1.1