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
path: root/js
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-09-14 19:05:25 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-09-14 19:05:25 +0400
commite127384e57c076a96462da2f984919abadbcb85e (patch)
tree6b4847bdff5a7c1d4d0c9f14d5da0f2e81f6ce7b /js
parent78f9254cc62af38e7fdb2725bb32f71c2f766168 (diff)
refs #4996 we have to add build a fully qualified URL of the content piece in case we detect the URL of an image, video or audio, pdf, ... automatically. Otherwise we cannot display a preview in the UI and one would not know which URL was actually meant. Thinking about using //domain/path instead of http://domain/path as it would track different content pieces for http and https otherwise
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 5072c4ef5d..b375e1a70f 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -1703,7 +1703,7 @@ if (typeof Piwik !== 'object') {
var media = this.findMediaUrlInNode(contentNode);
if (media) {
- return media;
+ return this.toAbsoluteUrl(media);
}
},
findContentTarget: function (node)