Skip to content

Fix edit links and post-save redirect to use identifier instead of _id#84

Open
jmccrae wants to merge 1 commit into
mainfrom
issue-83
Open

Fix edit links and post-save redirect to use identifier instead of _id#84
jmccrae wants to merge 1 commit into
mainfrom
issue-83

Conversation

@jmccrae

@jmccrae jmccrae commented Jun 24, 2026

Copy link
Copy Markdown
Member

Fixes #83

Templates were constructing edit links and post-save redirects using dataset._id (the MongoDB internal id) instead of dataset.identifier, causing 404 errors for datasets where these values differ.

Changes

  • dataset-detail.html: Edit link now uses dataset.identifier
  • dataset-edit.js: Post-save redirect now uses dataset.identifier

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

Dataset edit links and post-save redirects use _id routes that 404

1 participant