[pmwiki-users] MakeLink and url arguments
EuGèNe Van den Bulke
eugene at boardkulture.com
Fri Mar 17 15:10:34 CST 2006
Patrick R. Michaud wrote:
> On Fri, Mar 17, 2006 at 09:28:48PM +0100, EuGeNe wrote:
>
>> Hi All,
>>
>> In (:logbook:) I use MakeLink wherever I can but I don't know how to add
>> a url arguments properly ex.
>>
>> MakeLink($pagename,$pagename,'[-]','',$fmt="<A class='async'
>> href='\$PageUrl?log_month=$prev'>\$LinkText</A>").
>>
>> Would have href='http://site/Group/Page?log_month=200503' for a CleanUrl
>> PmWiki site but href='http://site/?n=Group.Page?log_month=200503' for
>> a standard installation ... which is not proper the ? in front of
>> log_month should be & in that case.
>>
>> Is there any way to make MakeLink deal with additional url arguments?
>>
>
> PmWiki allows either '?' or '&' to be used to separate arguments
> in a url. Thus
>
> http://site/?n=Group.Page?log_month=200503
> http://site/?n=Group.Page&log_month=200503
>
> both work the same for PmWiki. (Other applications might have
> problems with it, but then one wouldn't normally be using
> $PageUrl to send requests to other applications... :-).
>
> Pm
>
>
>
I understand but I wanted to parse the query string with Javascript and
the double ? didn't go down nicely ... found a way around it but was
wondering if there was a clean way to add arguments to Url ... not yet
... but I think we have a use case ;)
Cheers and thanks for your quick reply.
EuGeNe
More information about the pmwiki-users
mailing list