Permalink
Browse files

do not send parameters after hash in ajax requests

  • Loading branch information...
1 parent 1d7419d commit dc5b315f9b10263581c1b3ebea7636dbaf21c55e @juzna committed Jan 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/prototype/ajax/request.js
@@ -178,7 +178,7 @@ Ajax.Request = Class.create(Ajax.Base, {
request: function(url) {
this.timeStart = (new Date).getTime(); // Measure time of requests
- this.url = url;
+ this.url = url.replace(/#.*/, '');
this.method = this.options.method;
var params = this.options.parameters;
if(Object.isFunction(params)) params = params(this); // Parameters given as callback

0 comments on commit dc5b315

Please sign in to comment.