From 00503f25cdd892de521983a29f7e3d96a32801c8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 28 Jun 2008 16:58:31 -0400 Subject: smiley: Generate links relative to the destpage. (Fixes a reversion from 2.41.) --- IkiWiki/Plugin/smiley.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/smiley.pm b/IkiWiki/Plugin/smiley.pm index a8fed69e1..51b32b28f 100644 --- a/IkiWiki/Plugin/smiley.pm +++ b/IkiWiki/Plugin/smiley.pm @@ -76,7 +76,7 @@ MATCH: while (m{(?:^|(?<=\s|>))(\\?)$smiley_regexp(?:(?=\s|<)|$)}g) { else { # Replace the smiley with its expanded value. substr($_, $spos, length($smiley))= - htmllink($params{page}, $params{page}, + htmllink($params{page}, $params{destpage}, $smileys{$smiley}, linktext => $smiley); } } -- cgit v1.2.3