test_redirect
Follow a URL through its redirect rules to see each hop, final outcome, and total hops. Use it to confirm migration links land on a published page in one hop.
Instructions
Follow a URL the way a visitor would: a published page answers first, then the rules, hop by hop. Returns each step (page, redirect, gone, external, not-found, loop) and the hop count. Use it to verify a migration: every old URL should end on a page in one hop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A path ('/old-page?x=1') or full URL on this site. | |
| site | No | Site slug or id to act in (multisite). Omit to use this server's default site. Call list_sites to see what exists — an empty tree or search usually means the wrong site, not missing content. |