From 4ea37d5322431aa4d22dd8fe1148d89d757fdc39 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 5 Feb 2026 14:57:29 +1000 Subject: Fix up external links maybe. --- notYetAnotherWiki.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index cc76969..4a26493 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua @@ -809,10 +809,10 @@ local lunaLinky = function(url, lab, tit) -- Fix up the links. end end end - if (url:sub(-4) ~= '.png') and (url:sub(-5) ~= '.HTML') then url = url .. '.HTML' end if not done then -- TODO - Should check if this came from DocuWiki in the first place, AND double check this is for img src. if url:sub(1, 1) == '/' then + if (url:sub(-4) ~= '.png') and (url:sub(-5) ~= '.HTML') then url = url .. '.HTML' end local p = url local cnt = 0 for j = 1, #p do -- cgit v1.1