aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xnotYetAnotherWiki.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua
index 700de34..6eef889 100755
--- a/notYetAnotherWiki.lua
+++ b/notYetAnotherWiki.lua
@@ -630,7 +630,14 @@ 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 = linkFrom(Context.path, 'Foswiki/Main') .. string.sub(url, 7) .. '.HTML' end 633 if '/Main/' == string.sub(url, 1, 6) then
634 local link = linkFrom(Context.path, 'Foswiki/Main')
635 if '' == link then
636 url = string.sub(url, 7) .. '.HTML'
637 else
638 url = link .. '/' .. string.sub(url, 7) .. '.HTML'
639 end
640 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 641 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 642 if p == string.sub(url, 1, #p) then
636 local ur = string.sub(url, #p + 1) 643 local ur = string.sub(url, #p + 1)