Fixed no-slash-at-the-end-of-urls bug