Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,9 @@ const Builder = function(outBaseDir, options) {
}

function isArticleLink(url) {
return !url.includes('/') && url.endsWith('.html');
// Handle both regular html links and html links with anchors in them
const baseUrl = url.split('#')[0];
return !baseUrl.includes('/') && baseUrl.endsWith('.html');
}

// Try top fix relative links. This *should* only
Expand Down
Loading