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

throw non-404 errors from /router/translate-path responses #743

Merged
merged 2 commits into from
Apr 20, 2024

Conversation

JohnAlbin
Copy link
Collaborator

This pull request is for:

  • packages/next-drupal

GitHub Issue: #687

Describe your changes

translatePath() and getResourceByPath() return null when the given path is not found. NextDrupal incorrectly returns null for ALL errors, not just 404 errors.

This PR throws any error that is not a 404 error and continues to return null for 404 errors.

Copy link

vercel bot commented Apr 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
next-drupal ⬜️ Ignored (Inspect) Apr 19, 2024 5:24pm

@JohnAlbin JohnAlbin merged commit 5ed427e into main Apr 20, 2024
11 checks passed
@JohnAlbin JohnAlbin deleted the 687-throw-translate-path-errors branch April 20, 2024 02:07
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.

3 participants