Skip to content

Use site ID instead of handle - #58

Open
bramnijssen wants to merge 1 commit into
simplygoodwork:craft-5from
brikdigital:patch-1
Open

bramnijssen wants to merge 1 commit into
simplygoodwork:craft-5from
brikdigital:patch-1

Conversation

@bramnijssen

@bramnijssen bramnijssen commented Feb 20, 2026 •

Copy link
Copy Markdown

When attempting to load pins in preview-mode for a disabled site using the site handle in the query, Craft tries to resolve the Site object with a query that excludes disabled sites. This results in no site being found and an error being thrown. When using the site ID instead, Craft finds the site just fine, so the query works as expected.

@bramnijssen

Copy link
Copy Markdown
Author

@andrewmenich Just checking if you've had a chance to review this PR. Thanks!

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