Switching from simple to advanced search loses the search text
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
Part A:
1. Turn JavaScript off.
2. At <https:/
3. On the results page, realize that you need to refine your search, so click "Advanced search".
What should happen: You end up on an advanced search page where "disk error" is already in the field.
What actually happens: The field is empty.
This should be fixed in the template and the view class, not in JavaScript.
Part B:
4. Turn JavaScript on, and go back to the simple search page.
5. Change "disk error" to "format".
6. After entering the text, realize that this search will need to be an advanced one, so click "Advanced search" without submitting the form first.
What should happen: You end up on an advanced search page where "format" is already in the field.
What actually happens: The field either contains "disk error" (if you've implemented part A) or is empty (if you haven't).
This should be fixed with simple window.location= JavaScript. (It could be done without requiring Javascript, by turning "Advanced search" into another form button; but this probably would confuse people in general more than it would help those without JavaScript.)
(See also bug 42859.)
Changed in malone: | |
importance: | Untriaged → Medium |
status: | Unconfirmed → Confirmed |
description: | updated |
description: | updated |
tags: | added: search |
Changed in launchpad: | |
importance: | Medium → Low |
tags: | added: bug-search |
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?