]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/Feeds_link_to_index.html_instead_of_directory.mdwn
Fix incorrect URL pointing to the generated waypoint files by calling will_render...
[git.ikiwiki.info.git] / doc / bugs / Feeds_link_to_index.html_instead_of_directory.mdwn
1 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.
3 Thanks, that had been annoying me too. [[done]] --[[Joey]]
5 Patch:
7 <pre>
8 Index: IkiWiki/Plugin/inline.pm
9 ===================================================================
10 --- IkiWiki/Plugin/inline.pm    (revision 3241)
11 +++ IkiWiki/Plugin/inline.pm    (working copy)
12 @@ -312,13 +312,13 @@
13         my $page=shift;
14         my @pages=@_;
15  
16 -       my $url=URI->new(encode_utf8($config{url}."/".htmlpage($page)));
17 +       my $url=URI->new(encode_utf8($config{url}."/".urlto($page, "")));
18  
19         my $itemtemplate=template($feedtype."item.tmpl", blind_cache => 1);
20         my $content="";
21         my $lasttime = 0;
22         foreach my $p (@pages) {
23 -               my $u=URI->new(encode_utf8($config{url}."/".htmlpage($p)));
24 +               my $u=URI->new(encode_utf8($config{url}."/".urlto($p, "")));
25  
26                 my $pcontent = absolute_urls(get_inline_content($p, $page), $url);
28 @@ -415,7 +415,7 @@
29  
30         foreach my $page (keys %toping) {
31                 my $title=pagetitle(basename($page), 0);
32 -               my $url="$config{url}/".htmlpage($page);
33 +               my $url="$config{url}/".urlto($page, "");
34                 foreach my $pingurl (@{$config{pingurl}}) {
35                         debug("Pinging $pingurl for $page");
36                         eval {
37 </pre>