diff options
| author | dvs1 | 2025-03-17 08:41:40 +1000 |
|---|---|---|
| committer | dvs1 | 2025-03-17 08:41:40 +1000 |
| commit | 192785cb14614758317d7a2e33c9851b71c69478 (patch) | |
| tree | 35b398dbc6a801d03573bb73c4660466fbea9e8e | |
| parent | BUG++ sigh (diff) | |
| download | notYetAnotherWiki-192785cb14614758317d7a2e33c9851b71c69478.zip notYetAnotherWiki-192785cb14614758317d7a2e33c9851b71c69478.tar.gz notYetAnotherWiki-192785cb14614758317d7a2e33c9851b71c69478.tar.bz2 notYetAnotherWiki-192785cb14614758317d7a2e33c9851b71c69478.tar.xz | |
BUG-- upload and pub links are fixed again.
| -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 |
