Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

fix: return 404 for unpublished drinks#264

Merged
wKovacs64 merged 1 commit intomainfrom
fix/unpublished-drink-404
Feb 22, 2026
Merged

fix: return 404 for unpublished drinks#264
wKovacs64 merged 1 commit intomainfrom
fix/unpublished-drink-404

Conversation

@wKovacs64
Copy link
Owner

Summary

  • Unpublished drinks now return 404 on the public detail page (/:slug), closing a gap from feat: publish status #261 where direct URL access still served unpublished drinks

Test plan

  • Set a drink to unpublished via admin, verify its direct URL returns 404
  • Set it back to published, verify the page loads again

🤖 Generated with Claude Code

The publish status feature (#261) filtered unpublished drinks from
listings, tags, and search but not from the individual drink route.
Direct URL access still served unpublished drinks. Add a status check
so unpublished drinks return 404.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@wKovacs64 wKovacs64 merged commit 97c9fe1 into main Feb 22, 2026
8 checks passed
@wKovacs64 wKovacs64 deleted the fix/unpublished-drink-404 branch February 22, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant