Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document is not linked to before re-entering the document #1485

Open
tafkolstad opened this issue May 8, 2024 · 0 comments
Open

Document is not linked to before re-entering the document #1485

tafkolstad opened this issue May 8, 2024 · 0 comments

Comments

@tafkolstad
Copy link

Describe the bug

When creating a new document from structure, before filling in any fields, it can not be opened in presentation mode from the document editor. The problem arises when the user starts filling in fields, and the linking is not updated.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'structure'
  2. Create any previewable document type
  3. Fill in slug
  4. See that the newly created document is put into the document list
  5. See that there is no link to open the new document in presentation mode

To get the link to appear, you can refresh the page or re-enter the document in another way.

Expected behavior

When the user starts filling in the fields in the document, and the document is saved to the document list, I would expect the linking to show up without having to refresh the page or re-enter the document in any way.

Screenshots
Screenshot 2024-05-08 at 10 15 01
After creating the document.

Screenshot 2024-05-08 at 10 15 27 After filling in fields. This is where I would expect the linking to show up. Screenshot 2024-05-08 at 10 15 43 After re-entering the document.

Which versions of Sanity are you using?

➜ nextjs-app git:(main) ✗ sanity versions
@sanity/cli (global) 3.4.0 (latest: 3.41.1)
@sanity/image-url 1.0.2 (up to date)
@sanity/react-loader 1.9.17 (up to date)
@sanity/vision 3.41.1 (up to date)
@sanity/visual-editing 1.8.18 (up to date)
sanity 3.41.1 (up to date)

What operating system are you using?

macOS Sonoma Version 14.4.1

Which versions of Node.js / npm are you running?

➜ nextjs-app git:(main) ✗ npm -v && node -v
10.2.4
v21.6.1

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

No branches or pull requests

1 participant