add tag
निरंजन
I am trying to do something like the following:

```
% arara: pdflatex
% arara: pdflatex
% arara: clean: { extensions: [ log,aux,out,toc ] }
\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage{lipsum}

\newcommand*\mysubsectionone[1]{%
  \subsection[%
    \texorpdfstring{%
      #1\\[1ex]%
      \hyperref[my#1two]{%
        Link to two\dots\ \textit{\pageref{my#1two}}%
      }\quad
      \hyperref[my#1three]{%
        Link to three\dots\ \textit{\pageref{my#1three}}%
      }%
    }{%
      #1%
    }%
  ]{%
    #1\\[1ex]%
    \hyperref[my#1two]{%
      Link to two%
    }\quad
    \hyperref[my#1three]{%
      Link to three%
    }%
  }%
  \label{my#1one}%
}

\newcommand*\mysubsectiontwo[1]{%
  \phantomsection
  \subsection*{#1}%
  \label{my#1two}%
}

\newcommand*\mysubsectionthree[1]{%
  \phantomsection
  \subsection*{#1}%
  \label{my#1three}%
}

\begin{document}
\tableofcontents

\section{Test}
\mysubsectionone{abc}
\lipsum

\mysubsectiontwo{abc}
\lipsum

\mysubsectionthree{abc}
\lipsum
\end{document}
```

It gives me fairly satisfactory results, but I want the dots and the page number (as seen in the image below) to come after the original subsection and not after the extra links. How to change this?

![image.png](/image?hash=6f83b4d755c5d6ef48fa74b48d2a3b861430aeee495f039568212d88062d3010)

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.