Comment 3 for bug 60332

Revision history for this message
Brad Bollenbach (bradb) wrote : Re: [Bug 60332] Re: Switching from simple to advanced search loses the search text

On 11-Oct-06, at 12:45 PM, Björn Tillenius wrote:

> On Wed, Oct 11, 2006 at 04:07:35PM -0000, Brad Bollenbach wrote:
>> I'm inclined to do a POST with the "Advanced search" link, rather
>> than
>> turn an href into a button, and have this just not work for the non-
>> javascript heads. Launchpad already almost requires JS anyway, and
>> loss
>> of this functionality is only a small pain.
>>
>> What do you think?
>
> How about a simpler solution to begin with; After you've searched for
> "disk error", make the "Advanced search" link point to
> "?advanced=1&field.searchtext=disk+error"?
>
> I don't see why you want to POST the data? This bug is about
> switching to
> advanced search after doing a simple search.

A user that enters some searchtext and then decides to switch to the
advanced search is more likely than not to want to keep the text they
entered. And POSTing from the link would make it easy to let the user
modify the current search filter, which could trivially be captured
in hidden fields.