# Back Reference for Appendix

Using this question, one can simply have an appendix in his memoir, but is it possible to have an automatic clickable back reference, within the appendix, to either the first time it is referenced or a list of the pages where it is referenced? Exactly the same as what the option backref=true in BibLaTeX: \usepackage[style=ieee, backref=true]{biblatex} does for a bibliography.

## MWE without backreference in appendix

\documentclass[b4paper,14pt,twoside]{memoir}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc} % For French accents
\usepackage[T1]{fontenc}
\usepackage{lmodern, textcomp}
\usepackage{fixcmex} %fixing lmodern and textcomp

\usepackage{appendix}

\usepackage{hyperref}
\hypersetup{
citecolor = blue,
}

\usepackage{letltxmacro} % Those commands aim to put references into brackets automatically \ref: 5 becomes [5]
\AtBeginDocument{%
\LetLtxMacro\oldref{\ref}%
\DeclareRobustCommand{\ref}[2][]{[\oldref#1{#2}]}%
}

\begin{document}

\chapter{Regular Chapter}

... see appendix \ref{appendix1}.

\begin{appendices}
\chapter{Some Appendix \label{appendix1}}
The contents...
\end{appendices}

\end{document}