Replace window.location with the full URL to prevent passing query parameters
* Example before: location + '/mark_as_solved' /request_for_comments/30885?locale=de/mark_as_solved Now: //localhost:3333/request_for_comments/30885/mark_as_solved Note: https or http will be added automatically by browsers
This commit is contained in:
@ -17,7 +17,7 @@ $(document).on('turbolinks:load', function() {
|
||||
</a>';
|
||||
};
|
||||
|
||||
var jqxhr = $.ajax(window.location.href + '/tag_statistics', {
|
||||
var jqxhr = $.ajax('//' + location.host + location.pathname + '/tag_statistics', {
|
||||
dataType: 'json',
|
||||
method: 'GET'
|
||||
});
|
||||
|
Reference in New Issue
Block a user