Is there a way to create an alias for a confluence page? Making it accessible through 2 URLs?

Hi there,

one of our Confluence pages is directly accessable via a certain URL. Unfortunately, I am not the webserver administrator, so renaming this confluence page will cause the URL to point to a missing site.

Is there a simple way to create some kind of an alias for that page within confluence? So I can rename it, but keep the original URL that points to the new page?

Thanks for any hints!

 

Cheers,

Hendrik

1 answer

Hi Hendrik,

You could use one of the redirection plugins on the marketplace:

https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.redirection

https://marketplace.atlassian.com/plugins/com.hascode.confluence.plugin.redirection-plugin

or if you want something quick (you need a free license for the customware macro, which is kinda annoying), I wrote this user macro:

## @param location:title=Location|type=string|required=true|desc=The URL to redirect to
## @param delay:title=Delay|type=string|default=0|desc=The number of seconds to delay before redirecting the browser.
#set ( $Integer = 0 )
#set ( $delay = "0" )
#set ( $delay = $paramdelay )
#set ( $delay = $Integer.parseInt($delay) * 1000 )
#if ( $req.getParameter('redirect') != "false" )
  <script>
  setTimeout(function() {
    window.location = "$paramlocation";
  }, $delay);
  </script>
#end
<ac:macro ac:name="note">
  <ac:parameter ac:name="title">Redirection notice</ac:parameter>
  <ac:rich-text-body>
    <p>This page will redirect to <a href="$paramlocation">$paramlocation</a> in about $delay seconds.</p>
  </ac:rich-text-body>
</ac:macro>

To prevent having to do that in the future, you could use a tiny link (under Tools menu, click "Link to this Page."  That link will automatically go to that page regardless of whether the name is changed.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

283 views 2 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you