On Mon, 31 Jan 2005, Lars Gullik Bjønnes wrote: > | <a href='/LyX/Manuals'> > > I prefere links like this yes. Since then it is how the server that > was accessed that determines the resulting url. (done by the browser) > > | If so, I could bring it up with the author of PmWiki. > > Would at least be nice to know why it is not done that way.
I got the answer below from Patrick Michaud, the author of PmWiki. 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. so if you'd like I can change $ScriptUrl. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr