Project

General

Profile

Actions

Support #22785

closed

not allowed to preview drafts

Added by Marilyn Weber 29 days ago. Updated 4 days ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Domain Mapping
Target version:
Start date:
2025-05-16
Due date:
% Done:

0%

Estimated time:
Deployment actions:

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

Actions #1

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 :)

Actions #2

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?

Actions #3

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."

Actions #4

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?

Actions #5

Updated by Boone Gorges 18 days ago

  • Target version changed from 2.5.9 to 2.5.10
Actions #6

Updated by Boone Gorges 4 days ago

  • Status changed from New to Resolved

Tentatively marking resolved based on the above.

Actions

Also available in: Atom PDF