projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
po: fixed link to home page when po_link_to=negotiated, added testcase
[ikiwiki.git]
/
IkiWiki
/
Plugin
/
po.pm
diff --git
a/IkiWiki/Plugin/po.pm
b/IkiWiki/Plugin/po.pm
index a8d9b9cd99fa0a545e3e7e0b6e9f38446288b9d6..96ba467c58d63f4c2ec07a78d281c8d60759d3ef 100644
(file)
--- a/
IkiWiki/Plugin/po.pm
+++ b/
IkiWiki/Plugin/po.pm
@@
-406,6
+406,7
@@
sub mybeautify_urlpath ($) { #{{{
my $res=$origsubs{'beautify_urlpath'}->($url);
if ($config{po_link_to} eq "negotiated") {
$res =~ s!/\Qindex.$config{po_master_language}{code}.$config{htmlext}\E$!/!;
+ $res =~ s!/\Qindex.$config{htmlext}\E$!/!;
}
return $res;
} #}}}