Skip to content

Commit ab79874

Browse files
committed
Check backend instead of basebackend
It seems backend pdf now also reports basebackend html
1 parent db77298 commit ab79874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc-extension.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ preprocessor {
2929
}
3030
docinfo_processor {
3131
document -> {
32-
if (!document.basebackend('html') || !document.hasAttribute('fb-canonical-html')) {
32+
if (document.getAttribute('backend') != 'html5' || !document.hasAttribute('fb-canonical-html')) {
3333
return
3434
}
3535
return "<link rel=\"canonical\" href=\"${document.getAttribute('fb-canonical-html')}\"/>"

0 commit comments

Comments
 (0)