mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Independent technology for modern publishing, memberships, subscriptions and newsletters.
bloggingcmscreator-economyghosthacktoberfestheadless-cmsjamstackjavascriptjournalismnodejspublishingweb-application
refs https://github.com/TryGhost/Team/issues/1045 If the customize modal is open and you manually changed the URL, on navigating the modal would close and a transition to the manually entered URL would start but then you'd be transitioned back to `settings.design`. The problem occurs because `beforeModalClose` is always called when the modal closes causing the redirect. - added a `hasConfirmed` boolean that is set to `true` when leaving the customize route if there are no unsaved changes or the changes have been confirmed - skipped the unsaved changes check and redirect in `beforeModalClose` when `hasConfirmed` is true |
||
---|---|---|
ghost/admin |