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

chr at home.se chr at home.se
Thu Feb 3 16:31:27 CST 2005


On Wed, 2 Feb 2005, Patrick R. Michaud wrote:

> On Wed, Feb 02, 2005 at 06:43:08PM +0100, chr at home.se wrote:
> > On Mon, 31 Jan 2005, Patrick R. Michaud wrote:
> > 
> > > 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.
> > 
> > Well, I just find something that broke when setting $ScriptUrl to ''. The 
> > mailposts now don't show the URI for the page that's been changed...
> 
> Oh yeah -- *that's* one of the reasons I went ahead and switched back
> to absolute URLs.   :-)
> 
> The other solution is to change the setting of $MailPostItemFmt to place
> the http://.... in front of $ScriptUrl.
> 
> > Maybe we should have to variables for referring to the 'script'? One that 
> > always uses an external link and one that can be a relative link?
> 
> Perhaps.  I'm not a big fan of separate variables for basically the
> same thing, as one has to then explain the difference.  But perhaps
> $ScriptHostUrl would be a useful synonym.

Is something like '/wiki/pmwiki.php' really a URI? Maybe the variable
actually should have been $ScriptPath?  As for $ScriptHostUrl, do you mean
that: $ScriptUrl could either be e.g. 'http://pmwiki.org/wiki/pmwiki.php',
or simply 'wiki/pmwiki.php', whereas $ScriptHostUrl always starts with 
'http://...'?

/Christian

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





More information about the pmwiki-users mailing list