\RequirePackage{filecontents}
\begin{filecontents}{\jobname-ex.aux}
\relax
\ifx\hyper@anchor\@undefined
\global \let \oldcontentsline\contentsline
\gdef \contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
\global \let \oldnewlabel\newlabel
\gdef \newlabel#1#2{\newlabelxx{#1}#2}
\gdef \newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
\AtEndDocument{\let \contentsline\oldcontentsline
\let \newlabel\oldnewlabel}
\else
\global \let \hyper@last\relax
\fi

\newlabel{Q-whatTeX}{{1}{8}{What is \TeX {}?\relax }{question.1}{}}
\newlabel{Q-bug}{{322}{163}{What to do if you find a bug\relax }{question.322}{}}
\newlabel{lastquestion}{{322}{163}{What to do if you find a bug\relax }{question.322}{}}
\end{filecontents}
\documentclass{article}
\usepackage{xr-hyper}
\usepackage{hyperref}

\begin{document}
\externaldocument[XXX]{\jobname-ex}%
  [http://www.tex.ac.uk/tex-archive/help/uk-tex-faq/newfaq.pdf]

Test (should be URL, not GOTOR action):
\tracingmacros=1
\nameref{XXXQ-whatTeX}?
\tracingmacros=0
\end{document}
