Forums

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

User macro "Link to parent page" not working correctly

Sara von Hofsten July 29, 2024

We have a user macro for linking to parent page but after an upgrade (maybe it occured when we switched from server to data center) the macro isn't working. 

This is the macro;

## @noparams #if (!$content.getParent()) No parent page found #else #contentLink2($content.getParent() false false) #end

 

When klickning on the macro we get "Page not found".

What could be wrong? It seems that the link ads "$baseUrl" to the url...

 

Thanks in advance :)

4 answers

1 vote
Cenk Morkan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 16, 2025

Hey,

faced the same problem after upgrading to 9.2.5

#contentLink2 is still broken 

Try that, does the same :) :

## @noparams
#if (!$content.getParent()) No parent page found
#else
<a href="/pages/viewpage.action?pageId=$content.getParent().id">$content.getParent().getTitle()</a>
#end

 

BR

Cenk

0 votes
Saravanan Sekar April 29, 2025

We are facing the same problem. Did anyone find any solution or work around ?

0 votes
Keimpe de Jong
Contributor
February 21, 2025

Here the same problem after an upgrade to Data Center 9.x.x.

Is there a fix known / available for this?

Saravanan Sekar April 29, 2025

@Keimpe de Jong did you find any solution?

Like Keimpe de Jong likes this
Keimpe de Jong
Contributor
April 29, 2025

@Saravanan Sekar we did not and therefor ended the use of this user macro. The breadcrumbs are a fine alternative, this was an extra.

0 votes
Frank Duerr
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 29, 2024

We have the same problem. Have you fixed it?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events