From a8781e825378cd9583dfae8750c7a5d1a4fdbe1c Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Tue, 11 Feb 2020 00:39:07 +0100 Subject: #276 Fix custom URL validation failing due to URL normalization --- src/models/Service.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/models/Service.js') 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 @@ -import { computed, observable, autorun } from 'mobx'; -import path from 'path'; +import { autorun, computed, observable } from 'mobx'; import normalizeUrl from 'normalize-url'; +import path from 'path'; const debug = require('debug')('Ferdi:Service'); @@ -146,7 +146,7 @@ export default class Service { if (this.recipe.hasCustomUrl && this.customUrl) { let url; try { - url = normalizeUrl(this.customUrl, { stripWWW: false }); + url = normalizeUrl(this.customUrl, { stripWWW: false, removeTrailingSlash: false }); } catch (err) { console.error(`Service (${this.recipe.name}): '${this.customUrl}' is not a valid Url.`); } -- cgit v1.2.3-54-g00ecf