aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-12 14:24:23 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-12 14:24:23 +0000
commitaa38aff4d6db59494247067205b87f5bd375d174 (patch)
tree9434b96ddcca3c30aae8461a6a6bb064ecf91438
parent1f8f1851e80878ed7d6ab4a9333a9d2d9c0a62ed (diff)
downloadikiwiki-aa38aff4d6db59494247067205b87f5bd375d174.tar
ikiwiki-aa38aff4d6db59494247067205b87f5bd375d174.tar.gz
web commit by tuomov: patch..
-rw-r--r--doc/bugs/Feeds_link_to_index.html_instead_of_directory.mdwn24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/bugs/Feeds_link_to_index.html_instead_of_directory.mdwn b/doc/bugs/Feeds_link_to_index.html_instead_of_directory.mdwn
index 2c934ff2d..5e580cc46 100644
--- a/doc/bugs/Feeds_link_to_index.html_instead_of_directory.mdwn
+++ b/doc/bugs/Feeds_link_to_index.html_instead_of_directory.mdwn
@@ -1 +1,25 @@
When --usedirs is used, RSS and Atom feeds seem to link to the index.html directly, both for the site and for the feed items, instead of the directory, as pages otherwise do.
+
+Patch:
+
+<pre>
+Index: IkiWiki/Plugin/inline.pm
+===================================================================
+--- IkiWiki/Plugin/inline.pm (revision 3241)
++++ IkiWiki/Plugin/inline.pm (working copy)
+@@ -312,13 +312,13 @@
+ my $page=shift;
+ my @pages=@_;
+
+- my $url=URI->new(encode_utf8($config{url}."/".htmlpage($page)));
++ my $url=URI->new(encode_utf8($config{url}."/".urlto($page, "")));
+
+ my $itemtemplate=template($feedtype."item.tmpl", blind_cache => 1);
+ my $content="";
+ my $lasttime = 0;
+ foreach my $p (@pages) {
+- my $u=URI->new(encode_utf8($config{url}."/".htmlpage($p)));
++ my $u=URI->new(encode_utf8($config{url}."/".urlto($p, "")));
+
+ my $pcontent = absolute_urls(get_inline_content($p, $page), $url);
+</pre>