Before matching URL against regex, making sure that query params are appended to URI