aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordvs12025-03-14 14:19:21 +1000
committerdvs12025-03-14 14:19:21 +1000
commit79724b0ec8810b3c0399b28756297cc48a97a1bb (patch)
treec738b00b3637879ff2ae07dfeb77cb6409a12137
parentFix up /Main/ and /bin/ linkies. (diff)
downloadnotYetAnotherWiki-79724b0ec8810b3c0399b28756297cc48a97a1bb.zip
notYetAnotherWiki-79724b0ec8810b3c0399b28756297cc48a97a1bb.tar.gz
notYetAnotherWiki-79724b0ec8810b3c0399b28756297cc48a97a1bb.tar.bz2
notYetAnotherWiki-79724b0ec8810b3c0399b28756297cc48a97a1bb.tar.xz
/Main/ might work better now.
-rwxr-xr-xnotYetAnotherWiki.lua2
1 files changed, 1 insertions, 1 deletions
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
630local lunaLinky = function(url) -- Fix up the links. 630local lunaLinky = function(url) -- Fix up the links.
631 if ('https://wiki.devuan.org/' ~= url) and ('https://fos.wiki.devuan.org/' ~= url) then 631 if ('https://wiki.devuan.org/' ~= url) and ('https://fos.wiki.devuan.org/' ~= url) then
632 -- TODO - This might be covering up a bug elsewhere. 632 -- TODO - This might be covering up a bug elsewhere.
633 if '/Main/' == string.sub(url, 1, 6) then url = 'https://fos.wiki.devuan.org/' .. url end 633 if '/Main/' == string.sub(url, 1, 6) then url = linkFrom(Context.path, 'Foswiki/Main') .. string.sub(url, 7) .. '.HTML' end
634 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 634 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
635 if p == string.sub(url, 1, #p) then 635 if p == string.sub(url, 1, #p) then
636 local ur = string.sub(url, #p + 1) 636 local ur = string.sub(url, #p + 1)