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

Fix SupressNotFound making subrouters return 404 and add tests for SupressNotFound #940

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ezraisw
Copy link

@ezraisw ezraisw commented Jul 26, 2024

This fixes #939 by restoring rctx.RoutePath to its initial value, before Match() was called.

Also added tests to enforce this logic.

@ezraisw ezraisw changed the title Fix SupressNotFound making subrouters 404 Fix SupressNotFound making subrouters return 404 and add tests for SupressNotFound Jul 26, 2024
@johnwook
Copy link

johnwook commented Aug 5, 2024

wow, I was wondering why. Looks great!

@devhaozi
Copy link

I'm having the same problem, @pkieltyka could you take a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sub-routers returning 404 when using middleware.SupressNotFound on parent router
4 participants