diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-06 13:52:28 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-06 13:52:28 +0200 |
| commit | 889e15eabbe107d2642fdd8aa3f03821058c00dc (patch) | |
| tree | 5016fbf2fd673063c90608ae36406bd350dd34a2 /test/controllers | |
| parent | 9e63a6bec1b4ccc45dd684f7b6a941b75f9b9cf0 (diff) | |
Fix shared preview links breaking after a second publish
A token's page could stop being node.head_id (superseded by a newer
draft) while still being published_at.present? - the old check only
compared against the current head, so a superseded page fell through
to direct rendering instead of redirecting, serving a stale frozen
snapshot indefinitely instead of the current live content.
Also handles scheduled publishing correctly: a page can be head_id but
not yet public? (published_at in the future) - that case must still
render directly, not redirect into a 404 on the not-yet-live public
URL.
Diffstat (limited to 'test/controllers')
0 files changed, 0 insertions, 0 deletions
