From 1a91c1b2ed0024743be2396462d54182ccf367a8 Mon Sep 17 00:00:00 2001 From: David Balderston Date: Wed, 10 Aug 2016 07:31:16 -0700 Subject: [PATCH] Fix new url field focus bug (#194) Closes TryGhost/Ghost#7140 * Now checks to see if it is new or not before editing the url --- ghost/admin/app/components/gh-navitem-url-input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/gh-navitem-url-input.js b/ghost/admin/app/components/gh-navitem-url-input.js index a72f6f886e..8473e13db0 100644 --- a/ghost/admin/app/components/gh-navitem-url-input.js +++ b/ghost/admin/app/components/gh-navitem-url-input.js @@ -131,7 +131,7 @@ export default TextField.extend(InvokeActionMixin, { url = url.replace(baseUrlParts.pathname.slice(0, -1), ''); } - if (url !== '') { + if (url !== '' || !this.get('isNew')) { if (!url.match(/^\//)) { url = `/${url}`; }