URLs without parameters can be matched even if shorter that the original pattern, closes #1