From: Joey Hess Date: Wed, 18 Apr 2012 19:15:11 +0000 (-0400) Subject: link: Fix renaming wikilinks that contain embedded urls. X-Git-Tag: 3.20120419~11 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/169550a926f242ad9e15efd3a2c53b73b5841126?hp=da988473e1bd488c6432f9e71c17460057500594 link: Fix renaming wikilinks that contain embedded urls. --- diff --git a/IkiWiki/Plugin/link.pm b/IkiWiki/Plugin/link.pm index ef01f1107..1ba28eafd 100644 --- a/IkiWiki/Plugin/link.pm +++ b/IkiWiki/Plugin/link.pm @@ -144,9 +144,9 @@ sub renamepage (@) { my $old=$params{oldpage}; my $new=$params{newpage}; - $params{content} =~ s{(? Wed, 21 Mar 2012 14:33:14 -0400 diff --git a/doc/bugs/renaming_a_page_destroyed_some_links.mdwn b/doc/bugs/renaming_a_page_destroyed_some_links.mdwn index c1c6b5540..0fb717b02 100644 --- a/doc/bugs/renaming_a_page_destroyed_some_links.mdwn +++ b/doc/bugs/renaming_a_page_destroyed_some_links.mdwn @@ -4,3 +4,7 @@ When renaming a page here, ikiwiki destroyed unrelated links from unrelated page The renamed page was `configuration/bat-hosts` to `configuration/batman/bat-hosts` and the deleted links were ``\[[AUR | https://aur.archlinux.org/]]` and `\[[CHANGELOG|http://svn.dd-wrt.com:8000/browser/src/router/batman-adv/CHANGELOG]]`. --[[anarcat]] > Nevermind that, that commit was unrelated to the rename and probably an operator error. - No, actually, I just reproduced this again - see [another example](http://mesh.openisp.ca/recentchanges/#diff-d67dc2f0fdc149b13122fd6cba887a01c693e949). + +>> Looks like these all involve the wacky wikilink form that includes an +>> external url in the link. Fixed rename code to know about those. +>> [[done]] --[[Joey]]