When I use \parencite for example, it creates a hyperlink in the PDF which I can click to get to the reference in the bibliography. However, with \citeauthor and \citeyear it does not create one. It does create a mention in the bibliography however, so that is not the problem.
Does anybody know how to fix this? I don't know all the relevant commands for this, I use a standard template found on Overleaf. But the command for my bibliography is the following:
\usepackage[backend=bibtex,style=authoryear,maxcitenames=2,maxbibnames=15,natbib=true]{biblatex}
And the following I found in the .cls file:
\ifbool{hyperrefsupport}{% If the nohyperref class option has not been specified
\AfterPackage{biblatex}{ % Load the hyperref package after the biblatex package for compatibility
\RequirePackage{hyperref} % Required for customising links and the PDF
\hypersetup{pdfpagemode={UseOutlines},
bookmarksopen=true,
bookmarksopenlevel=0,
hypertexnames=false,
colorlinks=true, % Set to false to disable coloring links
citecolor=Crimson, % The color of citations
linkcolor=red, % The color of references to document elements (sections, figures, etc)
urlcolor=magenta, % The color of hyperlinks (URLs)
pdfstartview={FitV},
unicode,
breaklinks=true,
}\
Thanks in advance!
Edit: I found how to do it for the \citeauthor command by adding the following to the preamble: However, I was unable to modify it to work for \citeyear.
\DeclareCiteCommand{\citeauthor}%
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexnames{labelname}}
{}%
\printtext[bibhyperref]{\printnames{labelname}}}
{\multicitedelim}
{\usebibmacro{postnote}}
style=authoryear, so just use\cite*{<bibkey>}. – jon Dec 01 '16 at 18:59\citeauthor: hyperlinking author names in biblatex when using \citeauthor, see also biblatex+hyperref: citetitle/citeauthor and get hyperlink – moewe Dec 02 '16 at 07:49