diff --git a/common/app/routes/Jobs/components/NewJob.jsx b/common/app/routes/Jobs/components/NewJob.jsx index 7a2c61f7a5..cd5cbb237a 100644 --- a/common/app/routes/Jobs/components/NewJob.jsx +++ b/common/app/routes/Jobs/components/NewJob.jsx @@ -94,7 +94,12 @@ function formatUrl(url) { url.length > 4 && url.indexOf('.') !== -1 ) { - return normalizeUrl(url, normalizeOptions); + // prevent trailing / from being stripped during typing + let lastChar = ''; + if (url.substring(url.length - 1) === '/') { + lastChar = '/'; + } + return normalizeUrl(url, normalizeOptions) + lastChar; } return url; }