Forums

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

After copying a tree, page links point to old tree pages after I edit a page in new tree

Sean O'Donnell
Contributor
July 25, 2023

I realize there have been similar threads for this question, but none seem to have an answer for my particular situation.

I have a tree with more than 300 child pages that I have copied numerous times. However, on my two most recent copies (within the last 2 months), the page links revert to pointing to the old tree only after I edit the page.

So, simply put: The old tree is version 1.0. The new tree is version 2.0. After copying the tree from 1.0 to 2.0, the links work fine. When I edit a page in the 2.0 tree and publish, the links point to 1.0 again.

My workaround is to edit a page of the new tree, click the ellipsis, and revert the page to the last published version. This fixes the link issue when I go back in to edit the page. However, doing that for more than 300 pages is rather time-consuming.

I'm wondering why this happened in the first place, and how I can fix this going forward. Thanks in advance for your help.

1 answer

0 votes
Nic Brough -Adaptavist-
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.
July 25, 2023

Welcome to the Atlassian Community!

What types of link are you using?  Are they the internal [space:page]() links or hard copies of the URLs for the pages?

Sean O'Donnell
Contributor
July 27, 2023

The URLs are structured this way: mysite.atlassian.net/spaces/[name_of_space]/pages/[page_number]/[page_title]

Sean O'Donnell
Contributor
August 7, 2023

Nic, do you happen to have something I can try to solve this problem?

Andrii Maliuta
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.
August 8, 2023

Hello @Sean O_Donnell ,

Are the links stored on page as 

ac:link> ..... </ac:link>

or as 

<a href="xxx" ....... </a>

?

Sean O'Donnell
Contributor
August 8, 2023

Hi @Andrii Maliuta the links are in this format:

<a href="xxx" ....... </a>

 

Like Andrii Maliuta likes this
Andrii Maliuta
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.
August 8, 2023

@Sean O_Donnell ,

If the links are set as simple HTML '<a>', so it should not be changed anyhow by copying pages, as it is treated by Confluence as WEB link and should remain static - only <ac:link> are treated as content entities and change according to copy/move/rename, etc.

It is strange that editing a page influences the format of the links somehow. I can think just of some 3-rd party app influencing this behavior :( 

Sean O'Donnell
Contributor
August 8, 2023

Thanks @Andrii Maliuta 

I just came across this page: https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html

In the Links section, I see it lists the types of links you mentioned. Perhaps my links contain markup tags or something that isn't permitted to maintain the <ac:link> status?

Andrii Maliuta
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.
August 8, 2023

@Sean O_Donnell ,

Maybe you can check the Storage Format of pages to see if this is the case, though the link usually cannot contain such attributes. But sometimes if the content is copied from other web resources, the dat ais pasted with hidden tags into the editor, so it cannot be seen by eye, but is present in HTML :(

Like Sean O'Donnell likes this
Sean O'Donnell
Contributor
August 8, 2023

@Andrii Maliuta 

I will look into that and see if I can find anything that makes sense. Thank you for your help. It's greatly appreciated.

Like Andrii Maliuta likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events