Forums

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

Link to an anchor in different page using a HTML macro

Iria December 8, 2014

Hi, I have tried to link to an anchor which is located in different page by using a HTML macro:


Story : 

Page A: there is an anchor called "bottom"

In Page B, I want to link to the bottom anchor located in Page A and open Page A in a new tab and thus i use below HTML macro:

<a href="Page A#bottom" target="_blank">Click to open Page A bottom in a new tab</a>

 

Result: 

This html does NOT work now (it works before!). It does open the Page A in a new tab, but it has not direct to the bottom of Page A. 

 

Appreciate if anyone could provide me any feedback smile

2 answers

0 votes
Stephen Deutsch
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.
December 9, 2014

Hi Iria, did you try following the instructions at the bottom of the page?  When using an HTML macro, you don't have any access to the "magic" link-making methods in Confluence, so you have to use the following format: Page A#PageA-bottom"

Iria December 11, 2014

Cool, I try it and it does work :) Thank you so much!

0 votes
Iria December 8, 2014

I have refer to the syntax mentioned in below Confluence User Guide: 

https://confluence.atlassian.com/display/CONF53/Working+with+Anchors

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events