Using the Redirect macro to redirect pages

By placing a Redirect macro on a page, you may redirect a user who loads that page to another URL or page of your choosing. 

Ingredients

Apps
Redirection
Platform
Server, Cloud
Macros
Suppliers

Guide

  1. On a blank page, create a Redirect macro.

  2. In the Edit 'Redirect' Macro dialog box, enter the page or URL you want to redirect to in the Location field.



  3. You may also set the following parameters:
    • Delay - This is the amount in seconds to delay before the browser redirects the user.
    • Visible - Selecting this will display a brief message on the page that is being redirected. This option is enabled by default.

  4. Click Done when you are satisfied.


Notes

Redirecting a Page to an Attachment on Another Page (Server)

It is also possible to redirect a user directly to an attachment on another page.

To do so, append a caret character ^ and the attachment name to the page name you are redirecting to. For example, if you want to redirect to the attachment Q4_2018-Sales.xlsx which is located on the page Quarterly Sales Reports:

Example
Quarterly Sales Reports^Q4_2018-Sales.xlsx


Redirecting a Page to an Attachment on Another Page (Cloud)

To redirect to an attachment on the Cloud version, you only need to use the  Confluence Attachment  parameter. 

For example, if you want to redirect to the attachment Q4_2018-Sales.xlsx which is located on the page Quarterly Sales Reports:

When a Redirect is Blocked by Security Policies or Browser

On Confluence Cloud, you may be prompted to allow a redirect due to Atlassian's security policies. You will see a popup similar to this:

If this happens, you need to click Allow for the redirection to continue. 

Also on Confluence Cloud, some browsers such as Chrome may initially block the redirect.

If this happens, the Redirect macro will alert you with a pop-up dialog box with the link that the page was redirecting to.

 

To remove this pop-up dialog box, you need to click on the Pop-up Blocked icon in the address bar, and allow redirects from the Confluence site.