Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

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

Conversation

westonruter
Copy link
Contributor

@westonruter westonruter 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
@westonruter westonruter deleted the bugfix/remove-additional-query-params-from-post-section-navigation-link branch October 5, 2016 04:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants