lib/services/attachRoutes.js
function normalizeRedirectPath(redirect, site) {
  return site.path && !redirect.includes(site.path) ? `${site.path}${redirect}` : redirect;
}
function normalizeRedirectPath(redirect, site) {
  return site.path && !redirect.includes(site.path) ? `${site.path}${redirect}` : redirect;
}
function normalizeRedirectPath ( redirect , site ) { return site . path && ! redirect . includes ( site . path ) ? ` ${ site . path } ${ redirect } ` : redirect ; }
Normalizes redirects path appending site's path to it on sub-sites' redirects.
@param {String} redirect
@param {Object} site
@return {String}
Normalizes redirects path appending site s path to it on sub - sites redirects .