I noticed that a 'tcolorbox' with auto counter including the section number causes a warning in the log file and the respective hyperref links point only to the first occurence.
MWE:
\documentclass{scrartcl}
\usepackage{tcolorbox}
\newtcolorbox[auto counter,number within=section]{mybox}[1][]{title=MyBox~\thetcbcounter,#1}
\usepackage{hyperref}
\begin{document}
Mybox~\ref{mybox1}; Mybox~\ref{mybox2}
\clearpage
\section{Section}
\begin{mybox}[label=mybox1]
The counter name is \texttt{\tcbcounter}.
\end{mybox}
\clearpage
\section{Section}
\begin{mybox}[label=mybox2]
The counter name is \texttt{\tcbcounter}.
\end{mybox}
\end{document}
The warning in the log file reads
warning (pdf backend): ignoring duplicate destination with the name 'tcb@cnt@mybox.1'
So somehow the 'tcbcounter' is properly reset for the second section, but the internal counter 'tcb@cnt@mybox' does not contain the section number, so that the reference link to the second box points to the first.
Is this known or maybe a bug? Or can I, as the user, fix this easily? Thanks!