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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Internal links in Confluence Cloud

We are using Confluence Cloud to document a product to the public. Some of the pages are imported from Confluence Server and some are made new in Confluence Cloud. The new editor is used when creating new pages and the the legacy editor is used for imported pages.

Our version strategy is to work on a master version an then publish it to the public using “Copy space” add-on with a new space key. Internal links are changed to the new space key, but hrefs are not. Se description below.

When I copy an URL address for a confluence page from the address bar and paste it in the new editor it becomes an internal link. Using View Storage Format:

<ac:link ac:card-appearance="inline"><ri:page ri:space-key="ermaster" ri:content-title="M1 Resept" ri:version-at-save="1" /><ac:link-body>M1 Resept</ac:link-body></ac:link>

The title of the link is resolved asynchronously with object resolver. So far so god. Problem is that object resolver does not work for anonymous user. The full path is shown. I have tried the security setting “Anonymous Access to Remote API” but with no effect.

To fix this and also the slight delay for the object resolver to do its magic, I add a title to the internal link. Then it becomes an href:

<a href="https://e-resept.atlassian.net/wiki/spaces/ermaster/pages/34383303/M1+Resept">M1 Resept</a> .. and the hrefs are not translated to the new space key when using Copy space.

I think this is unpredictable of the new editor and I have not found any documentation of this “feature”. We need control over internal/external links. For the public space I don’t want to be dependent on the object resolver since it takes a litle while on slow nets to resolve the title.

I have a Catch 22 scenario here: I cannot use the internal links with Object resolver because it does not work for anonymous users on the published space and I cannot add a title because it then becomes an external link that will link to the master space that is not changed when the space is copied.

The workaround is to copy an imported page that uses the old editor for new pages with links. In the old editor you have full control over internal/external links.

What is the intended behaviour for internal/external links in Confluence Cloud with the new editor?

4 answers

1 accepted

1 vote
Answer accepted

I found a new workaround.

When you paste the link into the editor you should remove the server name.

The URL is : https://e-resept.atlassian.net/wiki/spaces/ermaster/pages/34383303

In the edior you remove the server adress: /wiki/spaces/ermaster/pages/34383303

Then you can add any displaytext you want and the link stays an internal link.

When using copy space tree to copy to another space it will link to the linked page in the target space.

I do wonder why this issue is not prioritized higher or that not more people have reported it?

We simply want to use Confluence cloud for our open documentation without the need to log in.  Are we the only one in the whole wide world that uses Confluence this way?  If so maybe we should reconsider...

I got a reply from atlassian about the Link Object Resolver for anonymous users.  See: https://jira.atlassian.com/browse/CONFCLOUD-68023 but with a "Long term backlog" status :-(

No explaination yet to why internal links (ac:link) becomes extrenal (href) when display text is added. 

Thank yoy very much

Example: cà phê nguyên chất

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

806 views 17 21
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you