diff --git a/ghost/admin/controllers/settings/navigation.js b/ghost/admin/controllers/settings/navigation.js index ef798f83c5..9f450ed471 100644 --- a/ghost/admin/controllers/settings/navigation.js +++ b/ghost/admin/controllers/settings/navigation.js @@ -128,8 +128,9 @@ NavigationController = Ember.Controller.extend({ url = match[1]; // if the last char is not a slash, then add one, + // as long as there is no # or . in the URL (anchor or file extension) // this also handles the empty case for the homepage - if (url[url.length - 1] !== '/') { + if (url[url.length - 1] !== '/' && url.indexOf('#') === -1 && url.indexOf('.') === -1) { url += '/'; } } else if (!validator.isURL(url) && url !== '' && url[0] !== '/') {