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

0 votes
Stephen Deutsch Community Champion Oct 27, 2014

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 Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,121 views 2 6
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