Handles removing 0 or more trailing slashes from the URL.