[pmwiki-users] Question about HTML output for link targets

chr at home.se chr at home.se
Mon Jan 31 17:37:51 CST 2005


Hi

I got a question from my web administrator for wiki.lyx.org. He wrote:

>> > (pmwiki does some mistakes... one is insisting to add "http://..." to
>> > the urls and hrefs itself. It should just have used "/..." a lot
>> > easier to work with.)

in a thread discussing how to make clean URIs. (Background: the URI of a 
page used to be e.g http://wiki.lyx.org/pmwiki.php/LyX/Manuals, but now it 
will simply be http://wiki.lyx.org/LyX/Manuals).

Anyway, after a clarification it turns out that he is asking why

	[[LyX/Manuals]]

generates this HTML

	<a class='wikilink'
	   href='http://wiki.lyx.org/LyX/Manuals'>Christian</a>

instead of for instance

	<a class='wikilink'
	   href='/LyX/Manuals'>Christian</a>

His motivation for preferring this was:

> I prefere links like this ... Since then it is how the server that
> was accessed that determines the resulting url. (done by the browser)

So what is the reason that 'http://' is included in the destination?  Do 
we gain anything by it?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list