swebsy_link_page
Point an existing link at a project page using the link's path and target page ID, so navbar hrefs and active states stay in sync after you create a page.
Instructions
Point an existing link at a project page — the same wiring the UI's 'Link to' picker does. Pass the link's targetPath (from read_page) and the target page (id or name). For a navbar link this sets its page target so the href and active state stay in sync; for a plain link or button it sets href to the page's ./slug.html. Use after create_page to wire a navbar to the new page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Page id or name to link to. | |
| targetPath | Yes | Zero-based component indexes from the current page root, exactly as returned by `read_page` (e.g. the nav link inside the navbar). |