Redirect

Description

This will redirect the browser to the specified page or URL.

Heads up: Macros may not available in Confluence upon installation

There is a known issue in Confluence Cloud (CONFCLOUD-58280) which prevents new macros from appearing in Confluence. Refer to this knowledge base (KB) article for recommended workarounds.

The screenshot below shows the Cloud version.


Parameters

NameRequiredAvailable InMigratable to Cloud?Default ValueDescription
Location
 Yes
Server, Cloud
Yes

Specifies the Confluence content or URL to redirect to. For example:

  • http://www.randombits.org/
  • Another Page^attachment.ext (Server version only. To redirect to an attachment on the Cloud version, use the Confluence Attachment parameter instead.)
Confluence Attachment
 Optional
Cloud
No
The attachment to redirect to, which belongs to the specified Location.
Delay
 Optional
Server, Cloud
Yes
0 (Server), 5 (Cloud)
The number of seconds to delay before redirecting the browser.
Visible
 Optional
Server, Cloud
Yes
true
Select whether the information panel should be visible to the user or not.


Editor View


Notes

  • This macro does not keep track of whether the page being redirected to has had its name changed.
  • To edit a page which redirects instantly, add '?redirect=false' to the URL manually.
  • This macro uses JavaScript to redirect, so browsers with JavaScript turned off will have to click through manually.
  • On the Cloud platform, some browsers (e.g., Chrome) may attempt to block the redirect. If this happens, you will need to click the Pop-up Blocked icon in the address bar and configure the browser to always allow redirects for your Confluence site.

Tutorial Examples