You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug or intentional feature. When using Blueprint route with Flask, I understand routes with trailing / can be used to handle routes with and without /. (e.g. /api/do/stuff and /api/do/stuff/.
When user enters a route /project/food/, it will return what project_category does and returns, but when user enters /project/food, it will redirect to /project/food/.
So if you don't want the redirect, you might do something like:
With the path type, even when you specify both routes, the route without the trailing / will still redirect to route with trailing / even though it is specified as a route.
Expect
I was expecting the same behavior for both string type dynamic route parameter and path type dynamic route parameter?
Activity