Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Preview in New Tab for CPT is linked to wrong URL. #955

Open
johnrobertmcc opened this issue Mar 1, 2022 · 0 comments
Open

Preview in New Tab for CPT is linked to wrong URL. #955

johnrobertmcc opened this issue Mar 1, 2022 · 0 comments

Comments

@johnrobertmcc
Copy link
Contributor

Thanks for taking the time to file a bug report! Please fill out this form as completely as possible.

If you leave out sections there is a high likelihood it will be moved to our GitHub Discussions.

Describe the bug
image
This 'Preview in new tab' should reroute to api/preview route. It redirects directly to / with a query string attached, sending user to the homepage.

To Reproduce
Steps to reproduce the behavior:

  1. Create CPT
  2. Draft a post
  3. Click on preview -> Preview in New Tab
  4. URL reroutes to / with query ?post_type=restaurant&p=535&preview=true attached

Expected behavior
This button should reroute to api/preview, with query string attached.

Desktop (please complete the following information):

  • OS: Ubuntu 20
  • Browser: Chrome, Chromium, Brave

Additional context
From CPT -> All Posts, preview is linked correctly to api/preview in quick edit options
image

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

No branches or pull requests

1 participant