A minimal example would have been appreciated. ;-) (I'm working with the standard biblatex styles and didn't know about biblatex-apa's \DeclareLanguageMapping
.)
I regard the following solution as rather "hackish" because a) I don't know the functioning of this particular \textcite
command b) other commands besides \textcite
might be in need of change as well c) the additional \printtext[bibhyperref]
wrappers seem to point at the right entry in the bibliography, but that was only luck on my part. In the long run, you should send a feature request to Philip Kime, the author of biblatex-apa.
\documentclass{article}
\usepackage[american]{babel}
\usepackage[style=apa]{biblatex}
\usepackage{csquotes}
\DeclareLanguageMapping{american}{american-apa}
\usepackage[colorlinks=true]{hyperref}
\DeclareCiteCommand{\textcite}
{\usebibmacro{cite:init}%
\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\usebibmacro{textcite}}}%
{}
{\iffieldundef{postnote}
{\ifbool{cbx:parens}
% {\bibrightparen}% DELETED
{\printtext[bibhyperref]{\bibrightparen}}% NEW
{}}
% {\ifbool{cbx:parens}% DELETED (FOR POSTNOTE)
{\printtext[bibhyperref]{\ifbool{cbx:parens}% NEW (FOR POSTNOTE)
{\postnotedelim}
{\addspace\bibleftparen}%
% \printfield{postnote}\bibrightparen}}% DELETED (FOR POSTNOTE)
\printfield{postnote}\bibrightparen}}}% NEW (FOR POSTNOTE)
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{a01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{b02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
\end{filecontents}
\bibliography{\jobname}
\begin{document}
Some Text \textcite{a01}. Some more text \textcite[A postnote]{b02}.
\printbibliography
\end{document}