Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Why does Firefox replace the & character in my URL with & characters generated by my app? Same app running in IE does not do this.

  • 3 replies
  • 2 have this problem
  • 4 views
  • Last reply by mikehausser

more options

I have a app that generates context sensitive URLs.

http://GISMAP/URLHandler.ashx?&MAPTABNAME=TPW&Scale=2306&CenterX=551,874&CenterY=4,805,573

in IE - no problem.

in Firefox, it produces a modified version which does not work:

http://GISMAP/URLHandler.ashx?&MAPTABNAME=TPW&Scale=2306&CenterX=551,874&CenterY=4,805,573

basically, firefox replaces every & character in the URL with & which corrupts the URL string

I have a app that generates context sensitive URLs. http://GISMAP/URLHandler.ashx?&MAPTABNAME=TPW&Scale=2306&CenterX=551,874&CenterY=4,805,573 in IE - no problem. in Firefox, it produces a modified version which does not work: http://GISMAP/URLHandler.ashx?&MAPTABNAME=TPW&Scale=2306&CenterX=551,874&CenterY=4,805,573 basically, firefox replaces every & character in the URL with & which corrupts the URL string

Modified by cor-el

All Replies (3)

more options

OK, even my post does not correctly show what is happening. the & character is being replaced with & amp ; (no spaces). Seems like Firefox itself is interpreting it differently.

Modified by mikehausser

more options

How are you generating the links?


A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.

more options

Thanks, IBM Maximo is generating the URL based on a URL template I provide - the system inserts on screen variables. It works flawless when using IE, so it is something specific to Firefox. Are there some advanced settings within firefox to tell it to stop interpreting special characters in some way?