[pmwiki-users] Clean URIs and conflicts with other uses of $ScriptUrl

chr at home.se chr at home.se
Tue Jan 25 06:32:33 CST 2005


> The Publish Wiki Trail script has several enhancements:
> http://www.pmwiki.org/wiki/Cookbook/PublishWikiTrail 

While trying this I ran into a problem because I'm using clean URIs.
My pages are accessed through something like:

  http://mydomain.se/Main/HomePage

using these settings:

  $URI0 = "http://mydomain.se";
  $ScriptUrl      = "$URI0";
  $PubDirUrl      = "$URI0/wiki/pub";
  $UploadUrlFmt   = "$URI0/wiki/uploads";

this results in a URI from the publish-button as follows:

 http://mydomain.se/?pagename=Main.Page&action=publish&include=include

I guess this is really a conflict between using clean URIs and 
publish.php, but how should we resolve it?  Should every script be made 
aware of $EnablePathInfo?

AFAICT, we need a method to generate page URIs for normal use which is 
invoked by publish.php in this case. Then we might need a separate method 
for cases when you don't actually have page name? (I.e., we need to "call" 
the script directly).

/Christian

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





More information about the pmwiki-users mailing list