normalize method

String normalize (String url)

Given a string representing a URL, returns the normalized URL path without leading or trailing slashes

Implementation

String normalize(String url) => Location.stripTrailingSlash(
    _stripBaseHref(_baseHref, _stripIndexHtml(url)));