Skip to content

Collections Navigation Bug Fix#692

Open
nguyen-katie wants to merge 6 commits intomainfrom
fix-collections-nav
Open

Collections Navigation Bug Fix#692
nguyen-katie wants to merge 6 commits intomainfrom
fix-collections-nav

Conversation

@nguyen-katie
Copy link
Copy Markdown
Collaborator

@nguyen-katie nguyen-katie commented Mar 21, 2026

When creating an edited collection, the new collection now appears under Collections in the menu.

The error shown below happens in the dev environment only.
image

@nguyen-katie nguyen-katie self-assigned this Mar 21, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 21, 2026

Deploy Preview for dailp ready!

Name Link
🔨 Latest commit 413ef98
🔍 Latest deploy log https://app.netlify.com/projects/dailp/deploys/69e256016975c30008e682a1
😎 Deploy Preview https://deploy-preview-692--dailp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nguyen-katie nguyen-katie linked an issue Mar 21, 2026 that may be closed by this pull request
@nguyen-katie nguyen-katie requested a review from alisony755 March 23, 2026 18:25
@nguyen-katie nguyen-katie added the bug Something isn't working label Mar 26, 2026
Comment thread website/src/pages/edited-collections/new.page.tsx
// Navigate to the new collection or show success message
navigate(`/collections/${result.data.createEditedCollection}`)
navigate(`/collections/${newSlug}`)
} else {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After I create a new collection, I get taken to a blank page

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the logs, it seems like creating the edited collection works, but it breaks when attempting to navigate to the new page (networkError: "TypeError: fetch failed")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the collections here use the id for the collection page slugs (ex. new collection page slug is .../collections/dc0a8ad1-4901-4c19-88f9-6bd5e3cdd254) whereas use the collections usually use the name (/collections/cwkw).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to add a query to return the slug instead of the id or add a new query to fetch the slug

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The slug returning the id and navigating to what seems to be .../collections/dc0a8ad1-4901-4c19-88f9-6bd5e3cdd254 was there originally & was working perfectly fine before I made any changes. I reverted it back to the original--with the slug still returning the id--but I am happy to take a look at making the query return the slug instead of the ID if required @GracefulLemming

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds good! I was just wondering if that was causing the issue

@nguyen-katie nguyen-katie linked an issue Apr 15, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Collections 404 Collections Navigation Bug

2 participants