Skip to content

Commit

Permalink
fix: update build full path logic to address failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
GethosTheWalrus committed Apr 30, 2024
1 parent 396809e commit ed2b44a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/core/buildFullPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import combineURLs from '../helpers/combineURLs.js';
*
* @returns {string} The combined full path
*/
export default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls = true) {
if (baseURL && (!isAbsoluteURL(requestedURL) || !allowAbsoluteUrls)) {
export default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
let isRelativeUrl = !isAbsoluteURL(requestedURL);
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
return combineURLs(baseURL, requestedURL);
}
return requestedURL;
Expand Down

0 comments on commit ed2b44a

Please sign in to comment.