Skip to content

Commit c600771

Browse files
committed
fix replacing options.url on <base> found
1 parent 4fd3e0b commit c600771

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/load.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ var Loader = function (data) {
115115
var $ = cheerio.load(html);
116116
$('base').each(function () {
117117
var self = $(this);
118-
options.url = self.attr('href');
118+
var href = self.attr('href');
119+
options.url = utils.getAbsolutePath(options.url, href);
119120
logger.log('Found <base>. Url changed to ' + options.url);
120121
self.remove();
121122
});

0 commit comments

Comments
 (0)