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/components/settings/services | |
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/components/settings/services')
-rw-r--r-- | src/components/settings/services/EditServiceForm.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/settings/services/EditServiceForm.js b/src/components/settings/services/EditServiceForm.js index 9b359a78e..23f5399f7 100644 --- a/src/components/settings/services/EditServiceForm.js +++ b/src/components/settings/services/EditServiceForm.js | |||
@@ -110,7 +110,7 @@ export default class EditServiceForm extends Component { | |||
110 | if (recipe.validateUrl && values.customUrl) { | 110 | if (recipe.validateUrl && values.customUrl) { |
111 | this.setState({ isValidatingCustomUrl: true }); | 111 | this.setState({ isValidatingCustomUrl: true }); |
112 | try { | 112 | try { |
113 | values.customUrl = normalizeUrl(values.customUrl); | 113 | values.customUrl = normalizeUrl(values.customUrl, { stripWWW: false }); |
114 | isValid = await recipe.validateUrl(values.customUrl); | 114 | isValid = await recipe.validateUrl(values.customUrl); |
115 | } catch (err) { | 115 | } catch (err) { |
116 | console.warn('ValidateURL', err); | 116 | console.warn('ValidateURL', err); |