Thinkmill / Thinkmill/keystatic

Refreshing keystatic admin UI results in a Not Found

Open
#1,461 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.4k
Forks
159
Avg merge
21h 41m
Merged PRs (30d)
2

Description

This is a Keystatic setup with NextJS and GitHub.

When loading keystatic at the root /keystatic url, it loads fine - and I can navigate to any resource inside. However, if I referesh the view or navigate directly to a specific resource (for example, a contact page in a "pages" collection /keystatic/branch/main/collection/pages/item/contact) it adds a / to the end of the URL (/keystatic/branch/main/collection/pages/item/contact/) and show the "Not found" page.

Image

I've tried making adjustments on my end - but nothing I do seems to resolve the issue. Any ideas for workarounds or more permanent solutions??

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by reproducing the /keystatic navigation and refresh behavior in the reported Next.js and GitHub setup, then trace the admin route handling for /keystatic/branch/main/collection/pages/item/contact/. Done means refreshing or directly opening a resource does not produce Not Found or add a failing trailing slash.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, nextjs, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.