Wiki source code of Redirect
Last modified by Treyfane Dingo on 2025/06/24 02:01
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{info}} | ||
| 2 | Parameters: | ||
| 3 | |||
| 4 | **reference** - The XWiki document reference or URL to redirect to. The URL can be absolute or relative. | ||
| 5 | **delay** - expressed in seconds (optional: default is 0) | ||
| 6 | **visible** - whether to display a redirect notice box (optional: defaults is "true") | ||
| 7 | {{/info}} | ||
| 8 | |||
| 9 | = Example usage = | ||
| 10 | |||
| 11 | == With document reference == | ||
| 12 | |||
| 13 | {{code}} | ||
| 14 | {{redirect reference="Sandbox.TestPage1" delay="3" visible="false"/}} | ||
| 15 | {{/code}} | ||
| 16 | |||
| 17 | == With absolute URL == | ||
| 18 | |||
| 19 | {{code}} | ||
| 20 | {{redirect reference="https://www.w3.org" delay="2"/}} | ||
| 21 | {{/code}} | ||
| 22 | |||
| 23 | == With relative URL == | ||
| 24 | |||
| 25 | {{code}} | ||
| 26 | {{redirect reference="/xwiki/bin/view/Sandbox/#HLinks"/}} | ||
| 27 | {{/code}} |