diff options
author | Benedikt Stemmildt <benedikt@stemmildt.com> | 2017-11-22 20:34:20 +0100 |
---|---|---|
committer | Benedikt Stemmildt <benedikt@stemmildt.com> | 2017-11-22 20:44:57 +0100 |
commit | a76432121ceca299a200d7fe30c4c4d644686d6b (patch) | |
tree | 55929b750e2ae650a6adcc3bf40e7af214b77d06 /src/models/Service.js | |
parent | replace typeform (diff) | |
download | ferdium-app-a76432121ceca299a200d7fe30c4c4d644686d6b.tar.gz ferdium-app-a76432121ceca299a200d7fe30c4c4d644686d6b.tar.zst ferdium-app-a76432121ceca299a200d7fe30c4c4d644686d6b.zip |
Do not strip www from custom urls
Stripping www from the custom url causes some custom services to fail.
When there is no domain without www loading is not possible.
Resolves: #325
Diffstat (limited to 'src/models/Service.js')
-rw-r--r-- | src/models/Service.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/Service.js b/src/models/Service.js index 484252e7c..93061c2cf 100644 --- a/src/models/Service.js +++ b/src/models/Service.js | |||
@@ -60,7 +60,7 @@ export default class Service { | |||
60 | if (this.recipe.hasCustomUrl && this.customUrl) { | 60 | if (this.recipe.hasCustomUrl && this.customUrl) { |
61 | let url; | 61 | let url; |
62 | try { | 62 | try { |
63 | url = normalizeUrl(this.customUrl); | 63 | url = normalizeUrl(this.customUrl, { stripWWW: false }); |
64 | } catch (err) { | 64 | } catch (err) { |
65 | console.error(`Service (${this.recipe.name}): '${this.customUrl}' is not a valid Url.`); | 65 | console.error(`Service (${this.recipe.name}): '${this.customUrl}' is not a valid Url.`); |
66 | } | 66 | } |