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.