how to create a link to a page with the link part made up of content in the page?

Marcelo Aguisky August 23, 2022

Let's say that I have multiple links to files in product in w website

https://mysite.com/prod1/info.txt

https://mysite.com/prod1/prd.jpg

https://mysite.com/prod1/readme.md
...

and so on.

AFAIK, I can insert in a confluence page a link to each of the files (and there can be several of them, Let's say 90. For each link I provide for example

Text: Info

URL: https://mysite.com/prod1/info.txt

So far so good, but now my boss comes and tells me that I have to create exactly the same page for another product (same website configuration, just different page).

https://mysite.com/prod2/info.txt

https://mysite.com/prod2/prd.jpg

https://mysite.com/prod2/readme.md
...

So I duplicate the page. 

Now you see my problem: I have to go and edit 90 links in the new page to point to the correct product.

Is there any way to define a variable in the page so I can provide it as part of the URL? like:

ProductName="productX"

and then I provide:

Text: Info

URL: https://mysite.com/{ProductName}/info.txt

If I can do something like that, then I duplicate the page, edit the ProductName, and I'm good to go.

1 answer

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 24, 2022

HI @Marcelo Aguisky and welcome to the community!

I don't think that's possible with out of the box Confluence functionalities. These links are embeded on a text, or like https://justalink.com

Perhaps exporting the space on word and then replacing all links with ctrl+f and re-importing the space could be a solution.

Suggest an answer

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

Atlassian Community Events