Redirects
A redirect declares another document as the destination. SevenMark returns this destination as metadata. The host decides whether to navigate.
Basic redirect
Use a root document title:
{{{#redirect TargetPageName }}}Use a UUID for stable identity, or an explicit name for an exact parent scope:
{{{#redirect id:019a0000-0000-7000-8000-000000000001 }}}
{{{#redirect name:document:019a0000-0000-7000-8000-000000000002:TargetPageName }}}These forms use the shared document reference syntax. A malformed or unavailable UUID does not fall back to a title lookup.
Redirect with explanatory content
Place explanatory content after the redirect's closing delimiter:
{{{#redirect NewPageName }}}
# This page has moved
The content of this page has moved to [[NewPageName]].The parser continues through the rest of the source. History, preview, and other host views can show the content without following the redirect. The body inside {{{#redirect ...}}} contains one target reference, not a separate message.
Target namespaces
For a bare title, #namespace selects a namespace other than the default Document namespace:
{{{#redirect #namespace="File" logo.png }}}
{{{#redirect #namespace="Category" Programming Languages }}}
{{{#redirect #namespace="site" Policy }}}An explicit named reference includes its own namespace:
{{{#redirect name:template:root:Greeting }}}The Site namespace uses the fixed lowercase token site. Its language-edition display name is host metadata and does not change source parsing.
Selection and authorization
The analyzer evaluates local definitions and conditionals. It selects the first active redirect in the host source. Additional redirects do not replace that selection. Redirects in included source do not redirect the host document.
AnalyzeResponse.redirect retains the authored reference. The host resolves it and supplies the current access decision. RenderResponse.redirect returns a resolved ID only for an allowed destination. Missing and denied destinations both return null.
The host checks access and controls redirect navigation. For a redirect chain, it must bound the chain and reject cycles. The parser does not follow chains or update stored links. See the renderer contract.