code: function customNormalizeUrl (url) {
    const [urlWithoutFragment, fragment] = url.split('#')
    return [normalizeUrl(urlWithoutFragment) + '/', fragment].filter(Boolean).join('#')
  }
docs: normalize-url does not remove trailing slash with {stripFragment: false}