I've reworked the url handling to properly redirect with trailing slashes in patterns