Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Anchors to work?

tobias.fielitz
Contributor
April 25, 2019

Added an anchor, shows up as grey box, but

 

1. it doesn't have a label, so is completely invisible

2. doesn't work

 

I've named the anchor "foo" and published the page afterwards. Navigating to the page using https://<url to page>#foo doesn't do anything.

1 answer

1 accepted

0 votes
Answer accepted
Fabienne Gerhard
Community Champion
April 25, 2019

Hi @tobias.fielitz - Anchors can be tricky sometimes (believe me - I made my experiences...)

did you check out 'view source' - this will show your site with content and all macros/addons on the page. There you will see if your anchor named 'foo' will appear. 

Should look something like that:
image.png

Next thing is - from where did you try to link to the anchor? If you're linking from another space your link must look something link 

spacekey:page name#anchor name

Now when I look on your example that might be the problem - do you want to send an direct link to someone? I have no idea how to generate them - my trick is - I create a link on page links-advanced to the anchor (like it's shown above) use this link and use the generated adress from browser.

The link contains something like the
/url/display/space/title(which might be tricky if special characters or spaces are used)/#titlewrittentogether-anchorname

tobias.fielitz
Contributor
April 26, 2019

Hi Fabienne, Thanks for the reply.

I would indeed like to link from an external source (from a comment in the code to be exact). 

The process you describe seems far too complex to achieve such a common (and simple!) thing :(

Fabienne Gerhard
Community Champion
April 26, 2019

Hi Tobias - than do the easy way - create the external link on a page for yourself (I have a page I just for myself in my personal space) where you create the advanced link

spacekey: page name#anchor name 

->  click this link -> this opens the anchor link -> copy the adress from browser and use this 

Shouldn't take you more than 1 minute I guess

I just wanted to show you how tricky it would be to create the link by your own by showing you all the parts ;)

Hope this works out for you!

tobias.fielitz
Contributor
April 28, 2019

it did, ty

Like Fabienne Gerhard likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events