Purpose

The will redirect to another Page/URL instantly. This can conplicate the edit of the page later on (smil)

Details

Macro Name

redirection-to-url

Macro-TitleRedirection To Url
DescriptionThis Macro redirectes to another URL instantly
CategoriesConfluence Content
Documentation URLhttp://www.mos-eisley.dk/x/OgC8AQ

Definition of User Macro

(afkryds)No macro body
(fejl)Escaped
(fejl)Unrendered
(fejl)Rendered
Referencehttps://answers.atlassian.com/questions/15713/redirection-in-confluence-4

Macro Code

## Macro title: Redirect
## Macro has a body: N
## Body processing: No macro body
## Output: Selected output option
##
## Developed by: David Simpson
## Date created: 2011-10-12
## Installed by: My Name
 
## This is an example macro
## @param url:title=URL|type=string|required=true|desc=The external webpage to redirect to
 
 
Redirecting to: <a id="redirectMe" href="$paramurl">$paramurl</a>
 
<script>
  AJS.toInit(function(){
    window.location.replace( AJS.$('#redirectMe').attr('href') );
  });
</script>