Closed Bug 292281 Opened 20 years ago Closed 20 years ago

adds additional characters to redirected URL and doesn't therefore find page

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: mike.turpin, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

I am using asp.net and vb.net in my aspx web page.

the relevant piece of code which works perfectly with internet Explorer is:

output_string = "http:\\train-it.co.uk\commentsearch.aspx?newsearch=" & 
commentchoice.text

response.redirect(output_string)

Firefox converts a typical URL to:

http://www.train-it.co.uk/%5C%5Ctrain-it.co.uk%5Ccommentsearch.aspx?newsearch=crystal

It then obviously cannot find the URL



Reproducible: Always

Steps to Reproduce:
1.go to first URL 
2.enter a search term such as 'access' 
3.click on the 'Search' button

Actual Results:  
Get a resource cannot be found error because URL has been corrupted

Expected Results:  
opened the http://train-it.co.uk/commentsearch.aspx page

Try it in Internet Explorer ... works perfectly!!!

First spotted on my son's PC, he is a fan of Firefox.

just downloaded and tried it on one of my PC's you will have to convince me to
become a fan!
The problem is that you are using backslashes when you should be using front
slashes. "http:\\" is invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
verified invalid
(firefox correctly escapes the "\" while IE does it wron).

The right URl would be something like this:
http://train-it.co.uk/commentsearch.aspx?newsearch....
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.