-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
🐛 [Bug]: Router Name abnormality in version v2.47 upwards #2671
Comments
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
Will check it today |
Greetings, This bug still exists. This is what the routes prints after i tried 2.50
From the table above, we can see that routes with same URL don't use independent names Also is there any reason why other methods are automatically using names? |
Bug Description
Greetings everyone, This is my first issue here.
First and foremost, Big thanks to the contributors on Fiber. I've found it incredibly useful coming from Nodejs, and I appreciate the effort that has gone into it.
I make use of route names heavily in my project and everything worked perfectly until I tried to update from
2.46
to any future version. (I tried all, 2.47 till date. i.e 2.49)Some route names are registered while some are not.
I have created a mini project that shows this using the
EnablePrintRoutes
option.In version
2.46
all route names are registered as expected but2.47
omits some.PS: The comments in the code explain some behaviors I noticed
How to Reproduce
Steps to reproduce the behavior:
OR clone this structured repo
https://github.com/trapcodeio/fiber-route-name-bug
It consists of two projects in one folder, one using
v2.46
and the other usingv2.47
The Server runs on port
3000
and3001
respectively.Expected Behavior
2.46
2.47 upwards
Fiber Version
v2.47...
Code Snippet (optional)
Checklist:
The text was updated successfully, but these errors were encountered: