param { string } serverRelativeUrl export function makeUrlAbsolute ( serverRelativeUrl ) { const baseUrl = `${ window . location . protocol }//${ window . location . hostname }` ; if ( serverRelativeUrl . indexOf ( baseUrl ) === 0 ) return baseUrl ; return baseUrl + serverRelativeUrl ; }