Closed Bug 298385 Opened 20 years ago Closed 19 years ago

If address-bar text has spaces, go to keyword.URL

Categories

(Firefox :: Address Bar, enhancement)

x86
Windows 2000
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 245597

People

(Reporter: jonathan.aquino, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

If the text entered into the address bar has spaces in it, the user probably
wants to do a search (or whatever they have specified in keyword.URL). For
example, ".NET ArrayList". But instead, they get an error dialog.

Reproducible: Always

Steps to Reproduce:
1. Type ".NET ArrayList" into the address bar
2. Press Enter. 


Actual Results:  
Get a dialog box: "The URL is not valid and cannot be loaded"

Expected Results:  
Because the text had a space in it, it would be better if Firefox went to
keyword.URL instead of displaying an error.
Actually it's very possible for a valid URL to contain spaces. They are encoded
as %20 but you can enter them on the location bar as spaces, which might
complicate things.
The reason for the bug is the dot '.' you are using for your keyword, which
maybe shouldn't be allowed. Otherwise something like 'www.google.com' might be
considered a valid keyword and a very ugly mess arises.
You actually can use spaces in a keyword, but like Jorge said, you cannot use
periods. "Mozilla rocks my socks" is a valid keyword, so if you're asking for
that to work, then this bug is INVALID. But if you're asking for periods to be
valid in keywords, then this is probably going to be a WONTFIX per comment 1.

*** This bug has been marked as a duplicate of 245597 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.