# fncychap and hyperref messes up page references

When using fncychap and hyperref together, the page number for references to the appendices are off. The Appendix A reference links to the first chapter, appendix B links to the second chapter, etc...

\documentclass{report}
\usepackage[]{hyperref}
\usepackage{fncychap}

\begin{document}
\pagestyle{plain}
\tableofcontents

\chapter{One} \label{one}
This refers to the page for chapter 1: \autoref{appendix}.

\appendix
\chapter{Two} \label{appendix}
This is the appendix

\end{document}


-

The problem is the ordering of the packages. fncychap must come before hyperref:
\usepackage{fncychap}

I'd add more: fancychap should not appear at all; but I'm biased. ;-) –  egreg Oct 17 '12 at 12:07