Skip to content

Commit

Permalink
Fixes matomo-org#5127 Set Base URL used in the AJAX request to ? in…
Browse files Browse the repository at this point in the history
…stead of `index.php?`

 It is set to '?' rather than 'index.php?' to increase chances that it works
 including for users who have an automatic 301 redirection from index.php? to ?
 POST values are missing when there is such 301 redirection. So by by-passing
 this 301 redirection, we avoid this issue.
  • Loading branch information
mattab committed May 13, 2014
1 parent 497f6da commit 5ada2b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/Zeitgeist/javascripts/ajaxHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,16 @@ function ajaxHelper() {

/**
* Base URL used in the AJAX request. Can be set by setUrl.
*
* It is set to '?' rather than 'index.php?' to increase chances that it works
* including for users who have an automatic 301 redirection from index.php? to ?
* POST values are missing when there is such 301 redirection. So by by-passing
* this 301 redirection, we avoid this issue.
*
* @type {String}
* @see ajaxHelper.setUrl
*/
this.getUrl = 'index.php?';
this.getUrl = '?';

/**
* Params to be passed as GET params
Expand Down

0 comments on commit 5ada2b9

Please sign in to comment.