Apply rabbit hole settings only to Published revision

Created on 30 October 2024, 6 months ago

An issue I came across on a project is that users wanted the ability to preview drafts of content. So, they could share a link to the page to a stakeholder and it could be reviewed before being moved along in the content pipeline.

This was made possible by using the Access Unpublished module.

Which works well, normally.

But, what I noticed was, because we also use the Rabbit Hole module, and on this type of content they want this ability, that the RH setting of "Page not found" or "Access denied', that it was getting in the way of the Access Unpublished working.

I will be adding a patch in BehaviorInvoker.php that skips the applying of the Rabbit Hole settings on Draft revisions. This should be fine, since Draft revisions are not viewable by anonymous users anyways, which is why we need modules like Access Unpublished to begin with.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States joshua.boltz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024