Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(nuxt): check for 404s after user middleware #4913

Merged
merged 1 commit into from
May 12, 2022
Merged

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves nuxt/nuxt#13931

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This PR moves 404 handling to after user middleware runs, meaning the user has a chance to redirect or handle it in other ways.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe added bug Something isn't working pages πŸ”¨ p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage labels May 10, 2022
@danielroe danielroe requested a review from pi0 May 10, 2022 11:46
@danielroe danielroe self-assigned this May 10, 2022
@netlify
Copy link

netlify bot commented May 10, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 63e6130
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/627a5091d3e742000891221b

@pi0 pi0 merged commit 46c656c into main May 12, 2022
@pi0 pi0 deleted the fix/404-middleware branch May 12, 2022 09:13
@pi0 pi0 mentioned this pull request Jun 10, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.x bug Something isn't working πŸ”¨ p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage pages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Middleware redirection failed. Expected '/ zh CN', actual '/' and page not found
2 participants