Skip to main content

Bug Tracker

Side navigation

Ticket #3808: test.ajax.3808.diff
File test.ajax.3808.diff, 0.5 KB (added by d3r1v3d, March 04, 2009 02:31PM UTC)

Proposed patch to resolve this ticket.

Index: src/ajax.js
===================================================================
--- src/ajax.js	(revision 6268)
+++ src/ajax.js	(working copy)
@@ -176,6 +176,9 @@
 		// checked again later (in the test suite, specifically)
 		s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
 
+        // strip any existing fragment (#) segment from the request URL
+        s.url = s.url.replace(/#(.*)$/, '');
+
 		var jsonp, jsre = /=\?(&|$)/g, status, data,
 			type = s.type.toUpperCase();

Download in other formats:

Original Format