remove current_url trailing slash

Remove a possible trailing slash in the current_url path.