Pier 2: ? in resfull url's

Jan van de Sandt jvdsandt at gmail.com
Fri Feb 26 23:44:28 MET 2010


Hello,

When I switch my pier 2 website to use session cookies I get nice restful
URL's. Only there is a question mark behind the URL even if there are no
query parameters.

I tracked this down to the WUrl>>purgeSeasideFields method. The question
marks disappears when I change the method to:

purgeSeasideFields
    self queryFields keys do: [ :each |
        (self isSeasideField: each)
            ifTrue: [
                self queryFields removeKey: each ifAbsent: [ ].
                self queryFields isEmpty
                    ifTrue: [ self queryFields: nil ] ] ]

It is also possible to change the WAUrl>>encodeOn: method to check for an
empty queryFields collection.

Jan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20100226/2cb9ed48/attachment.html>


More information about the smallwiki mailing list