The code that follows
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage[hidelinks]{hyperref}
\usepackage[nameinlink, capitalize, noabbrev]{cleveref}
\begin{document}
\begin{figure}[!htbp]
%
\caption{Sample.}
\label{fig:sample}
%
\centering
%
Some nice picture goes here.
%
\end{figure}
Some text referring to the stuff on \cpageref{fig:sample}.
\end{document}
Produces the result:
Is this a bug in the cleveref
package or am I missing something completely obvious?
\def\cpageref{\myownpagecommand}
Does this seem like a reasonable solution? My goal is to be able to remove that line when the bug has been fixed.