diff options
-rw-r--r-- | TODO.md | 1 | ||||
-rwxr-xr-x | notYetAnotherWiki.lua | 4 |
2 files changed, 2 insertions, 3 deletions
@@ -7,7 +7,6 @@ Make it perphekd! | |||
7 | 7 | ||
8 | Fix up linky conversion. DONE, mostly. | 8 | Fix up linky conversion. DONE, mostly. |
9 | 9 | ||
10 | - + BUG - broke images and other uploaded file linkies. The links are off by one. | ||
11 | - This is the "page moved" problem, but now it's "page copied" and "page linked", a generic solution might work. | 10 | - This is the "page moved" problem, but now it's "page copied" and "page linked", a generic solution might work. |
12 | - Rethink this, I might be going the wrong way. | 11 | - Rethink this, I might be going the wrong way. |
13 | - Need to deal with real file name versus title. Also symlink name not matching what it points to. | 12 | - Need to deal with real file name versus title. Also symlink name not matching what it points to. |
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index 1cea01b..c5814f3 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua | |||
@@ -746,9 +746,9 @@ local lunaLinky = function(url) -- Fix up the links. | |||
746 | url = xlnk .. string.gsub(ur, '.*%.', '', 1) | 746 | url = xlnk .. string.gsub(ur, '.*%.', '', 1) |
747 | -- end | 747 | -- end |
748 | if 'PmWiki/uploads/' == p then | 748 | if 'PmWiki/uploads/' == p then |
749 | url = '../' .. p .. string.gsub(ur, '%.', '.', 1) | 749 | url = '../../' .. p .. string.gsub(ur, '%.', '.', 1) |
750 | elseif 'Foswiki/pub/' == p then | 750 | elseif 'Foswiki/pub/' == p then |
751 | url = '../' .. p .. ur | 751 | url = '../../' .. p .. ur |
752 | else | 752 | else |
753 | url = url .. '.HTML' | 753 | url = url .. '.HTML' |
754 | end | 754 | end |