From 1d3f4f6935967977b88b487cb1d3ae7917baf2f5 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 6 Feb 2015 14:37:20 +1100 Subject: [PATCH] only send track view on get requests --- app/assets/javascripts/discourse/mixins/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/mixins/ajax.js b/app/assets/javascripts/discourse/mixins/ajax.js index d69383008b9..37e0ccc65a2 100644 --- a/app/assets/javascripts/discourse/mixins/ajax.js +++ b/app/assets/javascripts/discourse/mixins/ajax.js @@ -49,7 +49,7 @@ Discourse.Ajax = Em.Mixin.create({ var performAjax = function(resolve, reject) { - if (_trackView) { + if (_trackView && (!args.type || args.type === "GET")) { _trackView = false; args.headers = { 'Discourse-Track-View': true }; }