Skip to content

Commit

Permalink
πŸ› Make default icon URL absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaHuhn committed Aug 24, 2021
1 parent 64cfab8 commit 921be7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export const metaDataRules: Record<string, RuleSet> = {
}
}
},
defaultValue: () => 'favicon.ico',
defaultValue: (context) => makeUrlAbsolute(context.url, '/favicon.ico'),
processor: (iconUrl, context) => context.options.forceImageHttps === true ? makeUrlSecure(makeUrlAbsolute(context.url, iconUrl)) : makeUrlAbsolute(context.url, iconUrl)
},
video: {
Expand Down

0 comments on commit 921be7a

Please sign in to comment.