Support #22785
closednot allowed to preview drafts
0%
Description
Jane Schmidt writes:
I have encountered a new issue on my website )https://humbiocie.hunter.cuny.edu/) since we mapped the domain.
When attempting to preview changes in a page, I receive an error message that states that I am not allowed to preview drafts. The screenshot is attached.
Files
Updated by Boone Gorges 29 days ago
- Assignee set to Raymond Hoh
Ray, could you please have a look? I know this has come up in the past and had something to do with how preview links were (or were not) caught by Mercator, but this is your area of expertise :)
Updated by Raymond Hoh 29 days ago
Hi Marilyn,
Can you ask if Jane is logged in to the subdomain site (https://hunterhumbio.commons.gc.cuny.edu/wp-admin/) or the mapped domain (https://humbiocie.hunter.cuny.edu/wp-admin/) to attempt to preview the posts?
I do see an issue if the user is logged in to the subdomain site and attempting to preview the mapped domain post. I've just added a potential fix for this on production. Can you ask Jane to try previewing posts again to see if it is working? If there is still a problem, can you ask Jane to take a full screenshot of the browser, including the browser's URL bar?
Updated by Marilyn Weber 24 days ago
She replies "Thank you for forwarding this. I am indeed in the mapped domain.
I am attaching a screenshot."
Updated by Raymond Hoh 23 days ago
- Category name set to Domain Mapping
- Target version set to 2.5.9
Thanks to Jane's screenshot I was able to duplicate the issue.
I've put up a fix on production in https://github.com/cuny-academic-commons/cac/commit/37852fb3fa5a3d0c63b2b7faf13a6a53fb43c36d.
Can you ask Jane to try previewing a post again to see if the fix is working?
Updated by Boone Gorges 4 days ago
- Status changed from New to Resolved
Tentatively marking resolved based on the above.