Pier 2: ? in resfull url's

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pier 2: ? in resfull url's

Jan van de Sandt
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.

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Pier 2: ? in resfull url's

Lukas Renggli
I prefer to fix encodeOn: in Seaside. I've created a bug report:

    http://code.google.com/p/seaside/issues/detail?id=550

Thanks for reporting.

Lukas

On 26 February 2010 23:44, Jan van de Sandt <[hidden email]> wrote:

> 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.
>
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>



--
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki