I almost always use a CUSTOM_ID property for this, e.g.

* topic1
See topic [[#topic2][topic2]].
See glossary [[#glossary_topic2][topic2]].

* topic2
:PROPERTIES:
:CUSTOM_ID: topic2
:END:

* glossary
** topic1
:PROPERTIES:
:CUSTOM_ID: glossary_topic2
:END:
** topic2
:PROPERTIES:
:CUSTOM_ID: glossary_topic2
:END:

On Wed, Jun 3, 2020 at 4:06 PM Budiman Snowman <budimansnow...@gmail.com> wrote:
>
> I have this document:
>
> * topic1
> See topic [[topic2]].
> See glossary [[topic2]].
>
> * topic2
> * glossary
> ** topic1
> ** topic2
>
> What are ways to disambiguate the internal links? The first link should link 
> to the topic2 first-level entry, while the second link should go to the 
> topic2 entry under glossary. They both have the same title. One way I know is 
> using a unique dedicated target, e.g.:
>
> * topic1
> See topic [[topic2]].
> See glossary [[glossary topic2][topic2]].
>
> * topic2
> * glossary
> ** <<glossary topic1>> topic1
> ** <<glossary topic2>> topic2
>
> What are other ways available?
>
> Regards,
> BS

Reply via email to