diff options
Diffstat (limited to 'src/models/Service.js')
-rw-r--r-- | src/models/Service.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/models/Service.js b/src/models/Service.js index 10b54602f..12a2d4af9 100644 --- a/src/models/Service.js +++ b/src/models/Service.js | |||
@@ -1,6 +1,6 @@ | |||
1 | import { computed, observable, autorun } from 'mobx'; | 1 | import { autorun, computed, observable } from 'mobx'; |
2 | import path from 'path'; | ||
3 | import normalizeUrl from 'normalize-url'; | 2 | import normalizeUrl from 'normalize-url'; |
3 | import path from 'path'; | ||
4 | 4 | ||
5 | const debug = require('debug')('Ferdi:Service'); | 5 | const debug = require('debug')('Ferdi:Service'); |
6 | 6 | ||
@@ -146,7 +146,7 @@ export default class Service { | |||
146 | if (this.recipe.hasCustomUrl && this.customUrl) { | 146 | if (this.recipe.hasCustomUrl && this.customUrl) { |
147 | let url; | 147 | let url; |
148 | try { | 148 | try { |
149 | url = normalizeUrl(this.customUrl, { stripWWW: false }); | 149 | url = normalizeUrl(this.customUrl, { stripWWW: false, removeTrailingSlash: false }); |
150 | } catch (err) { | 150 | } catch (err) { |
151 | console.error(`Service (${this.recipe.name}): '${this.customUrl}' is not a valid Url.`); | 151 | console.error(`Service (${this.recipe.name}): '${this.customUrl}' is not a valid Url.`); |
152 | } | 152 | } |