Skip to content

fix: set urlPattern "/{slug}" on the pages collection in starter seeds (#1062)#1575

Open
marcusbellamyshaw-cell wants to merge 1 commit into
emdash-cms:mainfrom
Emdash-Bug-Testing:fix/1062-pages-urlpattern
Open

fix: set urlPattern "/{slug}" on the pages collection in starter seeds (#1062)#1575
marcusbellamyshaw-cell wants to merge 1 commit into
emdash-cms:mainfrom
Emdash-Bug-Testing:fix/1062-pages-urlpattern

Conversation

@marcusbellamyshaw-cell

Copy link
Copy Markdown
Contributor

What does this PR do?

The starter and starter-cloudflare templates ship a root [slug].astro route for pages, but the seeded pages collection has no urlPattern. As a result the admin "View" link and the visual-editing overlay resolve to a URL that doesn't match the route the template provides. This declares urlPattern: "/{slug}" so the collection lines up with the route already present in both templates.

Closes #1062

Type of change

  • Bug fix

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable) — n/a, seed JSON is template data validated by the existing template build
  • User-visible strings wrapped for translation — n/a, no admin UI strings
  • I have added a changeset — n/a, templates/* are not published packages

AI-generated code disclosure

  • This PR includes AI-generated code — model/tool: Claude Opus 4.8 ultracode

emdash-cms#1062)

The starter and starter-cloudflare templates ship a root `[slug].astro`
route for pages, but the seeded pages collection had no `urlPattern`, so
the admin "View" link and visual-editing overlay pointed at a URL that
didn't match the route. Declaring the pattern aligns the collection with
the route the template already provides.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f9db242

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

starter-cloudflare template: pages collection missing urlPattern causes Live View 404

1 participant