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

chr at home.se chr at home.se
Tue Feb 1 02:10:31 CST 2005


On Mon, 31 Jan 2005, Patrick R. Michaud wrote:

> On Tue, Feb 01, 2005 at 12:37:51AM +0100, chr at home.se wrote:
> > [...]
> > 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?
> 
> PmWiki goes ahead and places the full url in $ScriptUrl simply
> because it's slightly more robust for certain installations (i.e.,
> it reduces the number of things that could go wrong in light of
> strange PHP or server configurations).  This is especially true
> when dealing with the occasional "odd" urls such as wiki searches
> and uploads, or when aliasing or url-rewriting is taking place.
> 
> However, there's no requirement for the http://... to be there--
> a site administrator can set $ScriptUrl to be whatever value is
> best for the site.  Indeed, this is why the description of $ScriptUrl 
> appears at the very top of the sample-config.php file -- so that
> an admin will know how to customize it for his/her site.
> 
> Whenever I've set PmWiki to default $ScriptUrl to not include
> the http://, something has always broken on someone's server somewhere.
> Thus I prefer to keep the default robust and let others tune it as
> appropriate.

Thanks. Is this documented somewhere on PmWiki? If not I could add it to 
some suitable page if you'd like.

/Christian

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





More information about the pmwiki-users mailing list