Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
No regex pattern matching when delegating to sub applications #267
I think there might be an undesirable feature in the way paths are matched in the code that decides if a path should be delegated to a sub application.
The value is matched with ".startswith(pat)" which causes the delegation to choose the first sub application that handles a path similar to other sub application registered paths .
when I request "/themes" in my browser it's sub_app1's code that will handle it because .startswith(pat) will match "/theme" before "/themes" - thus giving me an undesired result.