mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
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
This commit is contained in:
parent
98892c6934
commit
1a91c1b2ed
@ -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}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user