function resolveFileToURL(output, filePath) {
    // Convert /test.png -> test.png
    filePath = LocationUtils.toAbsolute(filePath, '', '');

    var page = output.getPage(filePath);

    // if file is a page, return correct .html url
    if (page) {
        filePath = fileToURL(output, filePath);
    }

    return LocationUtils.normalize(filePath);
}
function resolveFileToURL(output, filePath) {
    // Convert /test.png -> test.png
    filePath = LocationUtils.toAbsolute(filePath, '', '');

    var page = output.getPage(filePath);

    // if file is a page, return correct .html url
    if (page) {
        filePath = fileToURL(output, filePath);
    }

    return LocationUtils.normalize(filePath);
}
function resolveFileToURL ( output , filePath ) { // Convert /test.png -> test.png filePath = LocationUtils . toAbsolute ( filePath , '' , '' ) ; var page = output . getPage ( filePath ) ; // if file is a page, return correct .html url if ( page ) { filePath = fileToURL ( output , filePath ) ; } return LocationUtils . normalize ( filePath ) ; }
Resolve an absolute path (extracted from a link)

@param {Output} output
@param {String} filePath
@return {String}
Resolve an absolute path ( extracted from a link )
Resolve file path to URL