Go to file
Manoj Srivastava c207086282 Bug#473987: [PATCH] Links relative to baseurl mangled in atom/rss feeds
tag 473987 +patch
thanks
Hi,

The issue is that we need to convert relative links to absolute
ones for atom and rss feeds -- but there are two types of
relative links. The first kind, relative to the current
document ( href="some/path") is handled correctly. The second
kind of relative url is is relative to the http server
base (href="/semi-abs/path"), and that broke.

It broke because we just prepended the url of the current
document to the href (http://host/path/to/this-doc/ + link),
which gave us, in the first place:
 http://host/path/to/this-doc/some/path        [correct], and
 http://host/path/to/this-doc//semi-abs/path   [wrong]

The fix is to calculate the base for the http server (the base of
the wiki does not help, since the base of the wiki can be
different from the base of the http server -- I have, for example,
"url => http://host.name.mine/blog/manoj/"), and prepend that to
the relative references that start with a /.

This has been tested.

Signed-off-by: Manoj Srivastava <srivasta@debian.org>
2008-04-03 16:27:29 -04:00
IkiWiki Bug#473987: [PATCH] Links relative to baseurl mangled in atom/rss feeds 2008-04-03 16:27:29 -04:00
debian aggregate: Correct a mistake in the code that dummy up a guid for feeds lacking one. 2008-04-03 02:36:01 -04:00
doc web commit by http://inthemedium.myopenid.com/: poll vote (Accept only OpenID for logins) 2008-04-02 22:52:46 -04:00
plugins scan hook works, remove NotImplemented exception 2008-03-21 19:17:00 -04:00
po Added a hardlink option in the setup file, useful if the source and dest are on the same filesystem and the wiki includes large media files, which would normally be copied, wasting time and space. 2008-03-29 21:02:47 -04:00
t add loadindex/saveindex test suite 2008-03-22 13:56:44 -04:00
templates * Add recentchangesdiff plugin that adds diffs to the recentchanges feeds. 2008-03-03 15:53:34 -05:00
underlays Add robots noindex,follow to redirection pages 2008-03-11 15:44:37 -04:00
.gitignore .gitignore: Ignore build-stamp 2008-01-26 22:25:43 -08:00
.perlcriticrc * Various minor fixes and stylistic improvements suggested by Perl::Critic. 2007-08-15 08:08:32 +00:00
CHANGELOG
IkiWiki.pm Added a hardlink option in the setup file, useful if the source and dest are on the same filesystem and the wiki includes large media files, which would normally be copied, wasting time and space. 2008-03-29 21:02:47 -04:00
Makefile.PL defer po and pot file updating until package build time 2008-03-21 16:32:23 -04:00
NEWS
README * Disable taint checking for all builds as people keep complaining about it, 2008-02-24 15:42:43 -05:00
docwiki.setup add a setup file for building the doc wiki 2007-12-19 17:31:28 -05:00
ikiwiki-makerepo Make makerepo set the Git merge remote 2008-03-11 15:40:07 -04:00
ikiwiki-mass-rebuild display if group setting fails 2007-12-07 01:09:48 -05:00
ikiwiki-transition fix transitioning of page state 2008-03-21 13:22:47 -04:00
ikiwiki-update-wikilist commit. 2007-09-06 00:32:11 +00:00
ikiwiki-w3m.cgi
ikiwiki.in Add --prefix-directives and --no-prefix-directives options to ikiwiki 2008-02-08 18:35:12 -08:00
mdwn2man fix 2007-03-31 06:56:52 +00:00
pm_filter if NOTAINT is not set, disable tainting 2008-02-24 16:01:10 -05:00
wikilist Fix typo. 2007-04-09 23:54:32 +00:00

README

Use ./Makefile.PL to generate a Makefile, "make" will build the
documentation wiki and a man page, and "make install" will install ikiwiki.

A few special variables you can set while using the Makefile:

PROFILE=1 turns on profiling for the build of the doc wiki. Uses Devel::Profile

NOTAINT=0 turns on the taint flag in the ikiwiki program. (Not recommended
unless your perl is less buggy than mine -- see
http://bugs.debian.org/411786)

All other documentation is in the ikiwiki documentation wiki, which is also
available online at <http://ikiwiki.info/>