aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ajax.js b/src/ajax.js
index cc871330d..97d40391d 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -10,6 +10,7 @@ var jsc = jQuery.now(),
rts = /([?&])_=[^&]*(&?)/,
rurl = /^(\w+:)?\/\/([^\/?#]+)/,
r20 = /%20/g,
+ rhash = /#[^#]*$/,
// Keep a copy of the old load method
_load = jQuery.fn.load;
@@ -205,6 +206,7 @@ jQuery.extend({
var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings),
jsonp, status, data, type = s.type.toUpperCase();
+ s.url = s.url.replace( rhash, "" );
s.context = origSettings && origSettings.context || s;
// convert data if not already a string