Access Keys:
Skip to content (Access Key - 0)
Home (Access Key - 1)
All spaces... (Access Key - 3)
Log in (Access Key - 5)
Sign up (Access Key - 6)
Toggle Sidebar

redirect macro


{redirect} Macro

This page is part of the documentation for a product called Confluence – nothing to do with mySpace.com redirection, sorry!

Examples

Hints and Tips

When you are first adding the macro to a page, set a delay of something like 20 seconds - this way, if there is a problem with the redirect, it's much easier to redisplay the page and edit it to fix the URL, etc. Once you are happy that the redirect is working, you can easily reduce or remove the delay.

Frequently Asked Questions

Q I merely want to redirect to a page with a similar name, is there an easier way?
A Yes. Use the alias macro.
Toggle Sidebar

See Also

Incoming Links


Outgoing Links


Added by Guy Fraser on Nov 08, 2005 23:35, last edited by Guy Fraser on Jul 21, 2008 19:10
Anonymous

I am a myspace.com user, I want to redirect a page to another myspace page but the only code I have found uses "meta" and myspace doesnt allow that type of code. Is there an alternate way for me to redirect one myspace page (http:myspace/1) to another (http:myspace/2)?

Sorry, this documentation isn't anything to do with myspace.com – you'd have to ask the people who are in charge of that service for details on how to do redirects.

Anonymous

How to redirect on pages with parameters?
E.g. On my special NEWS space, I want to redirect space homepage to that space's news page (http:\//myurl/confluence/pages/viewrecentblogposts.action?key=NEWS).
However I get only redirect: Please provide a page or URL to redirect to. error and putting %3F instead of "?" doesn't help, too.

I was going to say use the {blog-posts} macro, but then realised that doesn't display the calendar at the site. Can you add a feature request to JIRA (see issue tracking tab at the top of this page) and we'll see if we can find out what's causing this to fail.

Anonymous

Link to JIRA project is broken.

Thanks for bringing that to our attention - now fixed

Can this macro be used for conditionnal redirect ?

What I need is the following:

  • Redirect from the Dashboard (welcome message) to a public space (defined) if the user is not authentified.
  • Redirect to a private space (defined) if the user is authentified.

Can this macro do the job ?

Thank you !


Mickaël Rémond
http://www.process-one.net/



Updated by Guy Fraser
Jul 21, 2008 19:00

If you've got Theme Builder 3.0.0 or higher installed, use builder-show and builder-hide:

{builder-show:group=confluence-users}
{redirect ...private space...}
{builder-show}
{builder-hide:group=confluence-users}
{redirect ...public space...}
{builder-hide}

You can probably do something similar with Customware's Visibility plugin (the show-to macro and hide-from macro) although those particular macros are really buggy in the latest release of the Visibility plugin, hence us adding similar functionality to our Theme Builder plugin.

I have some users who want me to make a simple "E-mail Archives" link that shows up in our pagetree menu. I created the page, and used this macro to forward to the correct location:

{redirect:location=http://one.confluenceinstall.com/spaces/viewmailarchive.action?key=GROUP}

Unfortunately we have two third-level domains for our content. If a user logs in to http://two.confluenceinstall.com and clicks on this link, s/he will be prompted for a login.

Is there any way to do relative urls with this macro?

I have a problem to edit pages that include the redirect macro.
My page URL does not follow the scheme
http://www.adaptavist.com/display/USERGUIDE/redirect+macro
but looks something like
http://XXX.XXXYYYY.de/confluence/pages/viewpage.action?pageId=12847705
(i guess because the page title is a long german phrase full of special characters )
and because of this structure the "?redirect=false" after the URL does not seem to work and i cant access the page in edit mode at all ...

any idea how to deal with this?

thanks in advance,
Arne


Adaptavist Theme Builder Powered by Atlassian Confluence