Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-01-21 04:57:24 +0400
committermattab <matthieu.aubry@gmail.com>2014-01-21 04:57:24 +0400
commit32b677848db5bf4755b99a58375ff69b2f8d9e47 (patch)
tree113ef48bdbf21c2c1f92ea2d940459181be93b68 /plugins/Transitions
parenta5b0175e5610717f734f4556c87958de33bb5e33 (diff)
Fixes #4525 thanks for the report
Diffstat (limited to 'plugins/Transitions')
-rw-r--r--plugins/Transitions/javascripts/transitions.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Transitions/javascripts/transitions.js b/plugins/Transitions/javascripts/transitions.js
index e16771726c..30521acada 100644
--- a/plugins/Transitions/javascripts/transitions.js
+++ b/plugins/Transitions/javascripts/transitions.js
@@ -707,6 +707,11 @@ Piwik_Transitions.prototype.unHighlightGroup = function (groupName, side) {
/** Open a link in a new tab */
Piwik_Transitions.prototype.openExternalUrl = function (url) {
+ if (url.substring(0, 4) != 'http') {
+ // internal pages don't have the protocol
+ // external links / downloads have the protocol
+ url = 'http://' + url;
+ }
url = piwik.piwik_url + '?module=Proxy&action=redirect&url=' + encodeURIComponent(url);
window.open(url, '_newtab');
};