diff options
author | Manoj Srivastava <srivasta@acm.org> | 2008-04-02 12:01:25 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-04-03 16:27:29 -0400 |
commit | c207086282b2f058f647b7fa810f3da54fe5fe4b (patch) | |
tree | 7bcbfa4209beaf7f316bcef92734dac9eacc0929 /doc/contact | |
parent | a4dc0f997c2d64c21e08d06382b9f3c3987a681f (diff) |
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>
Diffstat (limited to 'doc/contact')
0 files changed, 0 insertions, 0 deletions