This page is a collection of tools that are helpful in troubleshooting redirection in SWEHB pages in all versions. This page will be maintained only in the SITE Resources space to avoid problems with duplication and making changes in the wrong page.
Redirection in all versions of SWEHB ended in August 2024 when support for the Redirect Macro was ended. .Â
- 1. Description Of Redirection Problem
- 2. Find Macros In Pages
- 3. Replacing Redirect With New Macro
- 4. Fix Tracking
1. Description Of Redirection Problem
For many years there was a Redirection Macro in the "ServiceRocket Redirection Addon for Confluence License". As of August 2024, the license is no longer supported. Therefore, the macro no longer works.
If the macro is in a page, the macro will trigger a warning message:
"The license could not be verified: License Certificate has expired! Administrators, please check your license details here."
The replacement for the macro is documented in the page: https://confluence.atlassian.com/confkb/how-to-redirect-confluence-users-to-a-new-url-976758203.html. On this page the use of the meta refresh tag in HTML is described.
The implementation of the meta refresh tag is described in the tabs of this page. Basically it involves:
- Finding all places in all SWEHB versions where "redirect" macro is used - See tab 2 of this page.
- Replacing the Redirect macro on each page with an appropriate HTML macro containing an appropriately configured meta refresh tag - See tabs 3 and 4 of this page.
Tab 4 of this page shows the list of pages affected and tracks the fixes to each page.
2. Find Macros used in pages
Find pages that use the cache macro
In the search window look for "macroName: cache*". Don't forget the "*" after the name of the macro you are searching for.
- Search for"
- macroName: redirect*
Make sure the results are coming from all spaces: 7150, SWEHBVB, SWEHBVC, SWEHBVD, SITE. Results from other spaces are not relevant.
Add results as links to the "Fix Tracking" tab on this page.
3. Replacing Redirect With New Macro
To replace the Redirect macro, use an HTML macro with a body like the one below
This HTML macro may be copied into a new page and activated by making the following changes:
- The value in the content switch is currently set at 1000 so the page will allow you to enter the Editor before it times out and sends you to the URL. You will want to set the value down to a shorter time like 2 or 3 seconds once you have tested the URL and are happy that it works properly.
- The value in the URL switch is currently set to a location in SWEHB.NASA.GOV to ensure that it works properly for anyone not logged in to Confluence. Use a location containing this domain. The target space and page should be formatted as shown to ensure that you get to a proper place. The URL above is purposely bad so you won't get redirected from this page.
4. Fix Tracking
<meta http-equiv="refresh" content="5; URL='https://swehb.nasa.gov/display/SWEHBVD/8.57+-+Testing+Analysis'" />
The title of this page has been changed. If you are using a bookmark to get here, please updated it.
You should be redirected to URL. If you do not get there in 2 seconds, click the link to go there.


