Closed Bug 306221 Opened 19 years ago Closed 11 years ago

Same keyword for search and non-search bookmarks not possible; should be

Categories

(Firefox :: Bookmarks & History, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 298697

People

(Reporter: reklam, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

I think it would be very useful to be able to have both "non-search" bookmarks
and quick-search bookmarks with the same keywords. E.g. "imdb" in the location
bar would give you the IMDB index page, and "imdb something" would search IMDB
for something.

When the URL contains "%s", only "keyword something" should trigger that
bookmark. When the URL does not contain "%s", only "keyword" should trigger that
bookmark.

Currently, this does not work. Only one of the bookmarks is triggered (the one
most recently added?).

It seems easily coded, and more intuitive, to differentiate between quick-search
keywords and non-search keywords. Keyword-space-query should never trigger
non-search keywords. A keyword not followed by a space and a query should never
trigger a quick-search keyword.

Reproducible: Always

Steps to Reproduce:
1. Add a bookmark with URL: http://www.imdb.com KEYWORD: imdb
2. Add a bookmark with URL: http://www.imdb.com/find?q=%s;s=all KEYWORD: imdb
3. Try "imdb" and "imdb something" in the address bar, without the quotes

Actual Results:  
You can't use the same keyword for both a non-search and a quick-search bookmark.

Expected Results:  
Firefox should be aware of the difference between non-search and quick-search
keywords and not let them clash.
See also bug 253457, an alternate solution: "clicking a bookmark with %s
(keyword query) should prompt for parameter".
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Seems to me that bug 253457 isn't an alternate solution, but part of this one. Otherwise all bookmarks with keywords could automatically go to the site (minus the trailing search options) - eg. clicking http://www.imdb.com/find?q=%s;s=all would go to http://www.imdb.com/.
Sorry for the bugspam, just found the "otherwise" alternative I mentioned, is bug 298697. So this bug should depend on bug 298697 since they can't both be fixed?
Depends on: 298697
Status: NEW → RESOLVED
Closed: 11 years ago
No longer depends on: 298697
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.