Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed closeURL of Site Editor #62797

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

Akash-Ramjyothi
Copy link

Changes proposed in this Pull Request

The getEditorCloseConfig used to determine the site editor by absence (undefined) value of postType. With recent changes, these queryArgs are required to load the site editor or else a redirect happens on the back end. Now getEditorCloseConfig will accept an additional param editorType (conveniently already used where we are already calling this selector), and use that value to determine if we are using the site editor. This should be much less fragile than making assumptions about postType.

@vykes-mac
Copy link
Contributor

@Akash-Ramjyothi Thank you for this. Did you make a change elsewhere for the getEditorCloseConfig selector to accept and use the editorType param? I'm not seeing that change here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants