Repository navigation
Publish Citecue pages under the site folder (page_folders) - #27
Draft
henry-mosh wants to merge 2 commits into
Draft
henry-mosh wants to merge 2 commits into
henry-mosh wants to merge 2 commits into
Conversation
…age_folders capability with self-refresh Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t the child URL; lock first pushes into a new folder Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets Citecue publish answer pages under the site's folder (for example
/resources/faq/) as real WordPress pages, instead of top-level pages served at/ai-answers/. App side: henry-mosh/citecue_app#1238.What changes
page_folderscapability, declared on connect. Not added to the Reconnect notice: after an update the plugin self-refreshes it by scheduling one wp-cron event (citecue_refresh_capabilities) that POSTs its capabilities to/api/delivery/v2/connect/capabilities(backoff 1 h → 6 h → 24 h; never inline on a front-end request).POST {restUrl}slug-check({ parent_path, slug }), signed like/content, writes nothing. Replies with the slug a new page would get under that parent, counting draft, private and trashed pages as taken, orfolder_conflictwhen the folder path is other content. That includes the post permalink prefix (e.g./blog/on a/blog/%postname%/site), the category/tag base, and public post type or taxonomy rewrite slugs. A non-page post already at/<folder>/<slug>/counts as taken.parent_pathon/contentpage inserts (and Autopilot operations): each missing folder level is created as a draft page (title from the segment); an existing page at the path is reused untouched. Exact slug or409 citecue_slug_taken;409 citecue_folder_conflict; both create nothing. Updates never re-parent. First pushes into a new folder take a short per-folder lock (503 citecue_busyif held). A failed child insert removes the folder pages it just created.get_sample_permalink) in the push reply, the Autopilot observation and status reports, so Citecue can confirm the address before the page goes live.includes/class-citecue-page-folders.php.Verification
test-page-folders.php(24 tests),test-page-folders-serving.phpandtest-capability-refresh.php.test-page-folders-serving.phpproves WordPress serves a published child of a draft parent publicly at/<parent>/<child>/(no canonical redirect) and returns 404 for the draft parent itself.🤖 Generated with Claude Code