Better handling of starting and trailing slashes for the url prefix configuration setting.