<div dir="ltr">As in polyglossia, if you create abjad numbering say by:<br><br>\documentclass{article}<br>\usepackage{hyperref}<br>\usepackage{etoolbox}<br>\makeatletter<br>\providecommand*{\xpg@warning}[1]{%<br>   \PackageWarning{some dummy package}%<br>
   {#1}}<br>\ifcsdef{abjad}{}{%<br>\def\abjad#1{%<br>\ifnum#1&gt;1999 \xpg@warning{Illegal value (#1) for abjad numeral} {#1}<br>\else<br>  \ifnum#1&lt;\z@\space\xpg@warning{Illegal value (#1) for abjad numeral}%<br>  \else<br>
    \ifnum#1&lt;10\expandafter\abj@num@i\number#1%<br>    \else<br>      \ifnum#1&lt;100\expandafter\abj@num@ii\number#1%<br>      \else<br>        \ifnum#1&lt;\@m\expandafter\abj@num@iii\number#1%<br>        \else<br>          \ifnum#1&lt;\@M\expandafter\abj@num@iv\number#1%since #1&lt;2000, we must have 1000<br>
          \fi<br>        \fi<br>      \fi<br>    \fi<br>  \fi<br>\fi<br>}<br>\def\abjad@zero{}<br>\def\abj@num@i#1{%<br>  \ifcase#1\or الف\or ب\or ج\or د%<br>           \or ه\char&quot;200D\or و\or ز\or ح\or ط\fi<br>  \ifnum#1=\z@\abjad@zero\fi}<br>
\def\abj@num@ii#1{%<br>  \ifcase#1\or ی\or ک\or ل\or م\or ن%<br>           \or س\or ع\or ف\or ص\fi<br>  \ifnum#1=\z@\fi\abj@num@i}<br>\def\abj@num@iii#1{%<br>  \ifcase#1\or ق\or ر\or ش\or ت\or ث%<br>            \or خ\or ذ\or ض\or ظ\fi<br>
  \ifnum#1=\z@\fi\abj@num@ii}<br>\def\abj@num@iv#1{%<br>  \ifcase#1\or غ\fi<br>  \ifnum#1=\z@\fi\abj@num@iii}<br>}<br>   \let\@latinalph\@alph%<br>   \let\@latinAlph\@Alph%<br>   \let\@alph\abjad%<br>   \let\@Alph\abjad%<br>
<br>\makeatother<br>\begin{document}<br>\tableofcontents<br>\section{Test}<br>\newpage<br>\appendix<br>\section{Another Test}<br>\end{document}<br><br>Then the section entry in the toc, does not link to the section in the appendix or if it links, it links to the first section. Could you please explain why this happens and if there could be a clean solution to this situation.<br clear="all">
<br>-- <br>Best wishes,<br>Vafa Khalighi<br>
</div>