Using biblatex, how can I get a URL from the bib file so that I can use it in the \href command?
I am guessing that the \usefield command is what I am looking for and that in order to use that I would need the \entrydata command. But both are undefined.
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\usepackage{hyperref}
\usepackage{filecontents}
\begin{filecontents*}{sources.bib}
@online{biblatex,
url = {http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf},
urldate = {2018-02-02},
}
\end{filecontents*}
\addbibresource{sources.bib}
\begin{document}
% This would work, but I don't want to duplicate the URL from the bib file:
\href{http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf}{biblatex documentation}
% Does not work because \citeurl{biblatex} is already a link, not the URL:
%The \href{\citeurl{biblatex}}{biblatex documentation}
% Does not work because \usefield and \entrydata are undefined:
%The \entrydata{biblatex}{\usefield\href{url}{biblatex documentation}}
\printbibliography
\end{document}