Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

anchor link does not reach out into other pages

Heinz-Peter Dettmar November 7, 2023

using an anchor works only within the same page. a link into a foreign page opens the page abut does reach the anchor.

where is my mistake?

thanks for a hint :-)hp

 

sample link:

rvwiki.drv.drv/display/PGGRZ/rvSystem+Migration+RZ+BB+-+RZ+DRV#unten

 

 

4 answers

0 votes
Nicolai Sibler
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 8, 2023

Hallo Hans-Peter,

ich verstehe das Problem noch nicht ganz.

  1. Wenn der Ankerlink Dich auf der Zielseite nicht zur Position des Ankers führt, wohin führt er Dich dann? Wo auf der Seite ist die Position des Ankers?
  2. Ist der Anker (das Makro oder die Ãœberschrift) innnerhalb eines Erweitern-Makros?
  3. Wie genau setzt Du den Ankerlink? Ein Screenshot vom Verlinkungs-Popup wäre hilfreich.

Grüße

Nicolai

Heinz-Peter Dettmar November 8, 2023

hallo nicolai,

ich setze den anker mit dem anker makro und verlinke, mit der option ‚erweitert‘, <url aus dem browser> + #anker.

der link ruf die seite auf und landet ganz oben. mein anker sitzt ganz unten in der seite.

bin derzeit auf reise, deshalb kein screenshot.

:-)hp

Nicolai Sibler
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 8, 2023 edited

Hallo Hans-Peter,

hier liegt die Ursache für Dein Problem; die URL generiert Confluence für Dich, nachdem Du den Link abgespeichert hast. Mit der Browser-URL wird der Anker nicht erkannt.

Folge genau dem Schema, wie es in der Dokumentation steht. Im Feld Erweitert gibst Du den Namen der Seite an (kannst Du von der Seite kopieren), dann Hash und den im Makro vergebenen Namen:

Titel der Zielseite#Ankername

Mit URLs arbeitest Du am besten nur, wenn Du auf eine externe Webseite verlinken willst.

VG

Nicolai

 

Edit: Mit dem Ankermakro arbeite ich kaum noch, da eigentlich immer eine Überschrift in der Nähe ist ... Da Überschriften "natürliche" Anker sind, gebe ich dann im Feld Erweitert nur noch

Titel der Zielseite#Titel der Ãœberschrift

 ein und spare mir dadurch das Einfügen des Ankermakros ;-)

0 votes
Vikas Jain November 7, 2023

For the anchor tag to open we need to add a ID to a div or any html object. In your case, the page should contain a ID unten for any div only then the page will load to that particular div.

 

-regards

Vikas Jain

0 votes
Heinz-Peter Dettmar November 7, 2023

hi sanjen, its all inside confluence. the page opens, but the anchor is not reached. i copy the url and add the anchor like #anchor.

:-)hp

Heinz-Peter Dettmar November 7, 2023

i am traveling and will to change train in some minutes, will come back tomorrow. thanks :-)hp

0 votes
Sanjen Bariki
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 7, 2023

Hi @Heinz-Peter Dettmar ,

 

Anchors work only if you refer to them from inside Confluence (and not from an external web page) and only if you set the link as advanced link and only if you set the link using the page title, followed by # and by the anchor name.

Please follow the below document to steup properly anchor in the confluence

Setup Anchor 

Could you please share the screenshot what is the issue is showing..?

 

Please Accept the answer If it helps you 😊.

Regards,

Sanjen Bariki

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Upcoming Confluence Events