Change router to catch ending slashes