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

Prevent extra section params from being passed along to previewUrl #306

Conversation

Projects
None yet
2 participants
@westonruter
Copy link
Contributor

commented Oct 4, 2016

Prevent the section.params other than post_id and post_type from being included in preview URL. Prevents URLs from being previewed that look like:

http://wp.example.com/?preview=true&p=6189&id=post%5Bpost%5D%5B6189%5D&panel=posts%5Bpost%5D&active=true&customizeAction=Customizing%2B%E2%96%B8%2BPosts&title=Hello%2BWorld&description=&priority=100&type=default&content=&instanceNumber=

The issue happened specifically when you clicked the post navigation link or if you jumped to a post via the select2 and the post was not visible in the preview:

Jump to post

@westonruter westonruter added this to the 0.8.3 milestone Oct 4, 2016

@westonruter westonruter merged commit 93629d0 into develop Oct 5, 2016

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@westonruter westonruter deleted the bugfix/remove-additional-query-params-from-post-section-navigation-link branch Oct 5, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.