Fixed an issue where a slash at the end of a url would 404