diff --git a/lib/filters.js b/lib/filters.js index 733dab94..bb8b0c38 100644 --- a/lib/filters.js +++ b/lib/filters.js @@ -3,7 +3,7 @@ import { removeTrailingSlash, removeWWW, getDomainName } from './url'; export const urlFilter = (data, { raw }) => { const isValidUrl = url => { - return url !== '' && !url.startsWith('#'); + return url !== '' && url !== null && !url.startsWith('#'); }; if (raw) {