#600665 ikiwiki: Should probably ignore trailing slash in the url setting

Package:
ikiwiki
Source:
ikiwiki
Submitter:
Cyril Brulebois
Date:
2024-03-20 11:15:06 UTC
Severity:
normal
Tags:
#600665#5
Date:
2010-10-18 22:51:46 UTC
From:
To:
(Applies to 3.20100504~bpo50+1 as well so probably to 3.20100815
currently in squeeze; I didn't check though, but feel free to mark it
“found” there.)

Hi,

I used to specify that in ikiwiki.setup:
|	url => "http://blog.ikibiki.org/",

but it turned out that slashes are doubled in the RSS pages, which isn't
exactly nice. [It's trivial to get rid of that trailing slash, RSS pages
get alright but then that generates (temporary) duplicates in feed
readers.]

I guess one could think about something like:
 - Forgetting about the trailing slash entirely if present in the 'url'
   setting.
 - Or squashing '//' into '/' while generating links.

Mraw,
KiBi.