Applying hotfix to match also paths with trailing slashes
Adding TODO about possible logic improvement of current decision logic