Redirecting traffic based on target audience
If you have a global homepage in Confluence, you can automatically redirect a group of users to their respective landing pages. In this example, we will set a redirect for marketing team members to their own marketing landing page using Visibility and Redirection.
Ingredients
Apps | Visibility, Redirection |
---|---|
Macros | Show If |
Guide
Create a Hide If macro on your global landing page.
When the Insert 'Hide If' macro dialog box appears, choose the user(s) or group(s) you intend to target and click Insert.
Within the macro, add a Redirect macro:
Upon inserting the macros, you will have a structure that looks like this:
Now, when you save the page, the group members viewing the landing page will be redirected automatically.
You might want to repeat steps 1 to 3 for other groups as well.
Notes
Not applicable.
Result
Not applicable.