to avoid a "//" appearing in the path.
I proposed this upstream in https://github.com/rails/rails/pull/55250, but it's not clear if the presence of script_name should _always_ prefix generated URLs, so for now it's local to Fizzy.