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
Hi!
Short story: try to add static prefix to the first route: @action('projects/<project_id:int>')
Long story: ombott uses radix-tree hybrid router, it is declaration-order-independent and instead of order-dependent resolving it prioritizes static route-fragment over dynamic one, since this is most expected behavior.
So this solution has some constraints - you can not have 2 (or more) routes that have dynamic fragment of different types (int, path) in the same place.
Hence the behaviour is expected and it is a documentation issue rather than a bug. I submitted a PR (web2py/py4web#938) to improve the documentation, and I am closing this issue.
I ran into some issues with routing, and I am not sure I am doing something wrong, or this is an expected behaviour...
I am trying to define a catch-all route in py4web that will handle things not handled by any other route. Here a minimal code example:
If I try to access the application with some random URL, I get a pretty extensive traceback with the main error message being:
The problem is reported while processing the:
Not sure, if what I try is not valid or otherwise wrong, or it is a bug in Ombott?
The text was updated successfully, but these errors were encountered: