add referrerpolicy ? #916
Answered
by
cmoralesmx
sharadagarwal
asked this question in
Q&A
-
I'm using ACM's Author-Izer Service, which allows visitors to my website to access my papers free of charge. However, for it to work properly, I need to add referrerpolicy to my PDF links. For example:
Is there a way to do this in the bib file? |
Beta Was this translation helpful? Give feedback.
Answered by
cmoralesmx
Oct 9, 2022
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sharadagarwal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently it is not possible to add this attribute
referrerpolicy="no-referrer-when-downgrade"
to the generated link.But, you can make a couple of changes to make this possible.
This change would require renaming a field in the
bib
file and creating a new entry in the template which creates the links.In your
.bib
file: Assuming you are using thehtml
field to store the link to your papers, you'd rename thehtml
field asownhtml
, as shown here,In
_layouts/bib.html
: You'd duplicate the 3 lines corresponding to the entry forentry.html
(around line 141).And in the 3 lines that you just duplicated, change
if entry.html
->if entry.ownhtml
and add your custom attribute, as shown here,