From 353786cb616dcd275690c074d13dd1f2cc3d8c0a Mon Sep 17 00:00:00 2001 From: Cato Antonsen Date: Thu, 3 Aug 2017 21:34:23 +0200 Subject: [PATCH] Fix this.file path --- CHANGELOG.md | 1 + js/module.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f762dbe..01c73ee5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Fixed ipWhitelist behaviour to make empty whitelist ([]) allow any and all hosts access to the MM. - Fixed issue with calendar module where 'excludedEvents' count towards 'maximumEntries'. - Fixed issue with calendar module where global configuration of maximumEntries was not overridden by calendar specific config (see module doc). +- Fixed issue where `this.file(filename)` returns a path with two hashes ## [2.1.2] - 2017-07-01 diff --git a/js/module.js b/js/module.js index 0d51e559..413efa46 100644 --- a/js/module.js +++ b/js/module.js @@ -194,7 +194,7 @@ var Module = Class.extend({ * return string - File path. */ file: function (file) { - return this.data.path + "/" + file; + return (this.data.path + "/" + file).replace("//", "/"); }, /* loadStyles()