[dokuwiki] Problems with links to sections

Hi

First of all I'd like to thank the developers of DokuWiki. It is a
really nice tool!

I noticed a problem with links to sections in a page.
After some digging in the source to find a solution I have some
questions.

In the function _headerToLink the title variable is firstly forced to
ASCII and then stripped for numbers. Then a unique name and id is
created. Why is this done? 

Is there any technical reasons why one don't simply use the titlename?
I mean one can convert it with rawurlencoding and replace spaces with
underscores, but I don't understand why one need to force ASCII. Many
pages will be written in UTF-8 so why not keep it?

Secondly why do one have to create a unique number to attach to
the id? This makes it impossible to link to certain sections in other
pages (especially if one don't use English). I can understand in the
cases that somebody makes two section with the same name in a page that
the TOC won't work, but isn't it better that the user sees that one
need to have unique section names? I don't think this is a problem in
any case... 

I also see there are some problems with interwiki links etc... I'd
like to contribute with patches, but I would like to hear you opinions
on my questions first.

I have patched my dokuwiki so it works without a problem now, with
utf-8 section names and linking between pages and interwiki. However, I
think one need to look a bit closer at the code.

Keep up the excellent work.

Preben 
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: