Design
Pages and routes
Create and manage the pages of your app, choose the entry page and the page after sign-in, link your pages, and see and fix every route in the Site map.
Use the Pages panel to create and manage the pages of your app, and the Site map to see how visitors move from one page to the next. Each page has its own address, such as /about.

What you can do
- See every page with its address, including pages only signed-in visitors can open.
- Create pages with a fixed address (
/about) or a part that changes (/blog/$slug). - Search, open, rename, duplicate, protect and delete pages.
- Choose the entry page and the page visitors land on after signing in.
- Give each page a title and a description for search engines.
- Add pages to the menu your pages share, and order them.
- Link any element to a page, a web address, a section, an email address or a phone number.
- See all your pages, layouts and links in the Site map, find broken links and pages nobody can reach, and fix them.
- Start from a full multi-page site template.
How pages work in your project
Each page is a file in the src/routes folder of your project. The file name gives the address: about.tsx is /about, and blog/$slug.tsx is /blog/$slug. When you create, rename, protect or delete a page in the panel, Lyna writes the files for you and updates the links to a renamed page.
The Pages panel
Choose Pages in the rail on the left of the editor. Each row shows a page name and its address. The header holds Search pages, the Site map button, Start from a template and New page.
| Row | What it is |
|---|---|
| Home | The page at /. |
| Signed-in area | The group of pages only signed-in visitors can open. A page protected on its own shows a Protected badge. |
| Dynamic page | A page whose address has a part that changes, written with a $, such as /blog/$slug for every blog post. |
| Not found | The page visitors see at an address that matches no page. |
| Entry tag | The page that opens first. |
| After sign-in tag | The page visitors land on after signing in. |
Type in Search pages to filter by name or address. Click a row, or press Enter on it, to open the page on the canvas. The arrow keys move through the list.
Create a page
Choose New page
Choose New page in the header of the Pages panel.
Enter the path
Enter the Path, for example
/aboutor/blog/$slug. Use$namefor a part that changes. The dialog shows the address the page will have.Protect it if needed
Turn on Protected if only signed-in visitors should open the page.
Create it
Choose Create page. The page opens on the canvas. In a site with translations, its name, its search title and description and its starter words go into the default language's file, ready to translate.
Manage a page
Open the menu of a row with the options button, a right click or Shift + F10:
| Action | What it does |
|---|---|
| Open | Shows the page on the canvas. |
| Open in preview | Opens the page in Preview mode. |
| Copy URL | Copies the full address of the page on your preview. |
| Preview values | For a dynamic page, the values the editor uses to open it. |
| Rename path | Changes the address. Links to the page are updated, and Lyna tells you how many. |
| Duplicate | Copies the page to a new address. |
| Title and description | What search results and link previews show. See SEO. |
| Mark protected / Remove protection | Makes the page for signed-in visitors only, or for everyone. |
| Page name | The name of the page. |
| Set as entry page | Makes the page the one that opens first. |
| Use as page after sign-in | Sends visitors to this page after they sign in. |
| Show in menu / Hide from menu | Adds the page to the menu your pages share, or removes it. A page with a value in its address cannot be in the menu. |
| Move up in menu / Move down in menu | Changes the order of the page in that menu (Alt + Arrow Up / Alt + Arrow Down). |
| Search parameters | The values the page reads after the ? in its address. |
| Loading and error views | The views the page shows while it loads or when it fails. |
| Delete | Removes the page file. If other pages link to it, Lyna first tells you how many links in how many files will stop working. |
The home page can be duplicated and get a title and description, but not renamed, protected or deleted. Press F2 to rename the selected page and Delete to delete it.
Press Cmd + Z (Ctrl + Z on Windows) to undo a rename, a duplicate, a protection change or a delete, one step each, and Cmd + Shift + Z to redo it. If the AI or the code editor changes a page file while one of these is being saved, Lyna keeps that change: a link it rewrites lands on top of it, and when the page file itself changed, nothing is written and Lyna tells you. An undo that would remove a newer change to the page file is refused the same way.
Choose the entry page
The entry page opens first, at /. Only a page with a fixed address can be the entry page. A protected page cannot (visitors would have to sign in to see your site: make it the page after sign-in instead), and neither can a page whose address changes.
Choose Set as entry page
Choose Set as entry page in the row menu in the Pages panel, or in the page menu in the Site map.
Choose where the current home page goes
Lyna asks for a New path for the current home page, filled in with
/home(or the next free address, such as/home-2). Change it if you like.Confirm
The page you chose moves to
/, the current home page moves to the new path, and links to both pages are updated. To go back, choose Undo in the notification.
Choose the page after sign-in
Choose Use as page after sign-in in a page menu (Pages panel or Site map) to send visitors to that page once they sign in, for example a dashboard. Lyna changes your sign-in page for you, and you can undo the change. The page gets an After sign-in tag.
This needs a sign-in page in your app that sends visitors to a page after they sign in. If your app has none, Lyna tells you there is nothing to change. A page whose address changes cannot be the page after sign-in.
Dynamic pages and preview values
A dynamic page needs a value for each part that changes before it can open: /blog/$slug needs a slug. Choose Preview values in the row menu. Enter a value for each part, or pick a suggested one (values you used recently, and values found in links to this page), then choose Open page. The editor remembers the values for this page.
Protected pages
A protected page is only for signed-in visitors. A visitor who is not signed in goes to your app's sign-in page (/login), then comes back to the page after signing in. The address of the page stays the same.
- Turn on Protected when you create a page, or choose Mark protected in its row menu.
- Protected pages appear under Signed-in area in the Pages panel.
- In Design mode, the canvas still shows the page, so you can design it without signing in. In Preview mode and on your published site, the sign-in rule applies.
- To try a protected page in Preview without signing in, choose Signed in next to View as in the frame bar. See Preview mode.
To let people sign up and sign in to your app, see Users and auth.
The not-found page
Visitors see the not-found page at an address that matches no page. Open the Not found row in the Pages panel to design it on the canvas like any other page, or choose Open in preview to see it as visitors do.
Links
Select a text, a button, an image or any element on the canvas, then choose Link in the element toolbar. Choose what the link goes to:
| Tab | What it links to |
|---|---|
| Page | A page of your project. For a dynamic page, fill in its Page values. You can add Query parameters and a section on the page. |
| URL | A Web address, such as example.com or https://example.com/page. Turn on Open in a new tab to keep your site open behind it. |
| Section | A section of the same page: pick it in Sections on this page, or type its id (for example pricing). Turn on Scroll smoothly to the section to glide there. |
| An Email address, with an optional subject. | |
| Phone | A Phone number. |
For a page link, Behaviour holds more choices: Load the page early, Replace history, Keep scroll position, Highlight when active, Animate page change and Show another address. Code shows the link as code, with Copy code.
A note under the form says what Apply does: it changes an existing link, turns a button into a link, or wraps the text, image or element in a link. Remove link removes the link and keeps the content. For a page link, Go to page opens that page on the canvas.
Lyna checks a link before it applies it: a page that is not in the project, a missing page value or an address that is not valid shows a message under the field. Links that can run code are blocked.
Follow a link on the canvas
Cmd-click (Ctrl-click on Windows) a linked element to follow its link. A link to one of your pages opens that page in the frame. A link to another site asks first, then opens it in a new tab.
The Site map
The Site map shows every page of your app, the layouts around them and the links between them, with the code behind each one. It opens in the editor in place of the canvas.
Open it
Choose Site map in the top bar or in the Pages panel, the command menu, or press
Cmd + Shift + M(Ctrl + Shift + Mon Windows).Choose the layout
In the header, choose Site map only to give the view the whole editor area, or Side by side to keep your live canvas next to it. Lyna remembers your choice. Drag the edge between the two to give either more room.
Close it
Press the shortcut again, choose Close the site map or press
Escto go back to the canvas.
In Side by side, selecting a page opens it on the canvas. The card reads Opening until it shows, and if you select several pages quickly, only the last one opens. The You are here ring follows the page the canvas shows.
The parts of the view
| Part | What it holds |
|---|---|
| Header | Test an address, the number of broken links (Checking links until every link is read, then No broken links when there are none), Graph or List, Demo and ? (the tour), and the layout choice. |
| Toolbar | New page, New layout, Set as start page, Protect or Remove protection, Auto-arrange, Lanes, and the zoom buttons with Fit to screen. |
| Side panel | Three tabs: Pages (every route as a tree, with its layouts, protected areas, redirects, the fallback page and its link counts), Links (every link, where it goes, and its file and line) and Issues (every problem with its fix). |
| Graph | A card for each page with a picture of it, its name, its address and its links in and out. Badges show Start, Sign-in, Values and Redirect. Each kind of link has its own line: Link, After an action (navigation written in code), Redirect or sign-in and Site menu. Broken links are red, dashed boxes are layouts, and selecting a page lights up its links. |
| List | The same pages as a table you can sort by page, address, kind, sign-in, search title, links in and out, and issues. |
| Details | What you selected, on the right: a page, a link, a layout, the signed-in area, a group of pages, the site menu, the not-found page or the whole site, each with its actions (Open in code, Ask Lyna). |
| Status bar | The legend (click a link type to show or hide it), then the number of pages, links and issues. |
You can resize or hide the side panel and the details.
While the view reads your links, the Issues tab and the status bar say Checking links. If your pages cannot be read (for example while the project starts), the view says so with Retry.
Watch the demo and take the tour
Demo in the header plays a short demo of the Site map on a sample site: testing an address, following visitors, linking and protecting pages, and fixing a broken link. It opens by itself the first time the Site map shows your pages on a device, and Demo plays it again whenever you want. You can also choose Site map: Watch the demo in the command menu.
? (Take the tour) walks you through your own map, one part at a time: a page card, Test an address, a card's +, Path from start and the broken links. At Test an address the tour types an example address into the field, so you see which page answers it; the field goes back to what it held when you move on. The last step offers Watch the demo, and the end of the demo offers Take the tour.
Page details
Select a page to see:
- Open in code, Preview, Add link and the more menu (rename, duplicate, title and description, protect, entry page, page after sign-in, delete). Preview shows the page on the canvas next to the view: from Routes only, the view switches to Side by side first.
- About this page: its file, the layout around it, the sign-in check that protects it and where it sends visitors, the data it loads, and its loading, error and not-found views. Click a line to open the code there.
- Values in the address: the parts that change and the values after the
?that the page reads, with their types. - Title and description in search results, with Edit.
- What happens when it opens, step by step.
- Links on this page and Links to this page, each with the text or code that triggers it, and its file and line.
Select a link line to see where it starts and where it goes, then choose Show on canvas, Change target or Remove link. Ask Lyna in the details opens the chat with a request that names what you selected.
Removing protection from the last protected page, or deleting it, never deletes a sign-in layout you changed: Lyna tells you, and nothing changes.
Test an address
Type an address in Test an address, for example /products/42. The chip says which page opens it and the values it reads, or that no page owns it and which page answers instead. Lyna only reads the address: it never opens it.
Lanes
Choose Lanes in the toolbar:
- Path from start shows the way a visitor goes from the start page to the selected page as a timeline: each page on the way, what the visitor does to go on (the link they click, the site menu, the form they send) and what is checked on the way (sign-in, a shared frame, a sample value the page needs). Pick the pages in From and To, step through the paths as short with the arrows, and press Play the path (or Space) to walk it one step at a time. When no link reaches the page, Add a link from starts the link from the start page.
- When it opens shows, on the same timeline, what happens when the page or a tested address opens, in the order it runs, on tracks in plain words: Finds the page (the pages and layouts that match), Checks (search values, sign-in), Waits (the data the pages load at the same time, the loading view) and Shows (the result). Each step says what happens first and names its code under it. Pick the page in its header. For a protected page you see both results: Signed in, the page; Signed out, the sign-in page.
Click a step to open its code. The lanes open in a strip under the map: drag its top edge to make it taller or shorter (or focus the edge and use the Up and Down arrows; a double click goes back to the first height). The strip keeps its height when you switch lanes or close and reopen them. In a narrow window, each step keeps its name and its words, and the header folds the paths and the zoom into a menu. A step's words wrap onto two lines, and its tooltip holds them whole. Click a step of Path from start for its quick actions (see Quick actions).
New layout
A layout wraps pages with shared content, like a header or a sidebar. Choose New layout in the toolbar, then a kind:
- A Path layout (for example
/shop) wraps every page under that address. The pages stay where they are. - A Pathless layout (for example
_shop) wraps the pages you choose without changing their addresses.
Choose Create layout. To go back, choose Undo in the notification.
Add a link
Choose + on a page
Choose + on the card of the page the link starts from (with the keyboard, press
Tabuntil it is focused, thenEnter; on a touch screen, tap it), or Add link in its details. A live preview of that page opens.Pick what visitors click
Move the pointer over the preview: buttons, headings and empty links are outlined with their name. Click one to pick it, or pick it in the list under the preview (with the keyboard or on a touch screen). An element that already has a link asks before you change where it goes.
Click the page it opens
A dashed line follows the pointer and the other pages light up. Click a page, or pick it in the panel. The link is written at once and its line appears.
Adjust it if needed
Change the target page, add query values or a section, or turn on Open in a new tab, then choose Done. If the target asks visitors to sign in, the panel says so.
Press Esc to go back one step. In the same panel, Add to the site menu adds the page to the menu your pages share, and Ask Lyna opens the chat with a request that names the two pages.
Find and fix problems
The Issues tab lists each kind of problem with its fix:
| Issue | What it means | Fix |
|---|---|---|
| Broken links | A link goes to an address that matches no page, or to a dynamic page without its value. | Repair when one page has a close address, else Change target or Remove link |
| Hidden pages | A page never shows, because the page around it does not show its child pages. | Repair: the page becomes an index page, so its child pages show |
| Shared words | Two pages read the same words, so editing one page changes the other. | Repair: each page gets its own copy of the words |
| Not linked | No other page links to this page. | Add a link here |
| No way out | The page links to no other page. | Add a link |
| Locked out | A protected page that no page opens after sign-in. | Open after sign-in |
| Unused values | A link passes a value the page never uses. | Open code |
Repair fixes an issue that has a safe fix, and shows what it changes before it runs:
- Shared words: the words each page will read under its own keys, and the language files they are copied into. Words shared on purpose, such as a button used on every page, stay shared.
- Hidden pages: the file that moves to the index of its address, and the child pages that then show. The address stays the same.
- Broken links: the address that becomes the page it was close to, such as
/Pricingbecoming/pricing. Lyna never guesses between two pages.
Choose Repair to apply it as one step: Undo takes it back, and the issue leaves the list. When the files changed since the preview, or no fix is safe, the dialog says why and offers Ask Lyna. Where a link should go, or which value a page needs, stays your choice: those issues offer their own fix, Open in code and Ask Lyna.
Change or remove a link
- Show on canvas closes the Site map, opens the page and selects the linked element.
- Change target sends the link to another page.
- Remove link removes the link and keeps the content. When the line stands for several links, you can remove all of them in one step, or choose Remove only the selected element. If a link cannot be removed, Lyna tells you and nothing changes.
Each change can be undone, and removing several links undoes in one step. Navigation written in code (for example after a form is sent) shows in the view, but you change it in the code editor.
Quick actions
Whatever you point at in the Site map offers what you can do with it, in the same list wherever it shows:
| Where | How to open its actions |
|---|---|
| A card or a line on the map | Right-click it, or select it and press Shift + F10 or the menu key |
| A row of Pages, Links or Issues | Right-click it, choose the row's actions button (…), or press Shift + F10 |
| A step of Path from start | Click it, or press Enter |
| The details | The actions button (…) |
| On a phone | Press and hold a page or a link, or tap a step of Path from start |
- A page lists the actions of its card (open, preview, links, rename, duplicate, protect, entry page, page after sign-in), Add to site menu or Remove from site menu, Open in code, Link a page here when nothing leads to it, and Ask Lyna. Delete comes last.
- A link lists its details, Go to source page, Go to target page, Show on canvas, Open in code, Change target, Change label and Ask Lyna. Remove link comes last, and asks first: Remove the link from Pricing to Blog?
- An issue leads with Repair when it has a safe fix, then its own fix, Show on map, Open in code and Ask Lyna.
- A step of Path from start lists the actions of its page or its link. A check lists Show on map, Open in code, Explain, and Remove protection when the page can be public.
An action that cannot run stays in the list with its reason under it, such as It leads to another site. Each change is one step that Undo takes back.
Change label changes the words of a link where they are written: type the new words, then choose Save. Words that come from your translations or from code are changed in the code panel, and the dialog says so.

Ask Lyna to change pages
To change several pages at once, choose Ask Lyna to change pages in the toolbar (on a phone, in More actions at the top). Lyna AI plans the pages first, and you review the plan on the map before anything changes.
Say what should change
Write it in the field, such as "Add a blog with a page for each post", or pick a quick start: Add a blog, Add a pricing page or Protect the account pages. Under For, keep Whole site, or choose the page or the section you opened it from: Ask Lyna in the actions of a page or a layout opens it there. Choose Plan it, or press
Cmd + Enter(Ctrl + Enteron Windows). When the project has no model to run it, the field says Choose a model first, and Choose a model opens the model picker right beside it, with the field and your words kept.Review the plan on the map
The plan shows on the map: a page to add is a dashed card marked Add in the box it will live in, a page to rename shows its old address struck out beside the new one, a page to remove fades, a page to protect is marked Protect, and the links to add are dashed lines. The bar at the top of the map counts the changes, such as Structure plan with 3 pages and 2 links. The same plan waits in the chat as a card, with Review on the map.
Build it, or change it
Choose Build on the bar or on the card. Building the plan counts the changes as they land, and each new card takes the place of its dashed card, marked Added. Undo on the bar takes the whole build back. To change the plan, choose Edit in chat and say what to change; Dismiss sets it aside.

When the site changed since the plan was made, the bar says This plan is out of date, with Ask again. While a plan does not fit the site yet, the bar says Lyna is adjusting the plan and lists what did not fit. On a phone, a row under the list opens the plan in a sheet. Only editors of the project can build a plan.
The chat works the same way: a request that adds several pages, such as a blog or a members area, gets a structure plan to approve before any page is written. One simple page is built at once.
Pictures, arrangement and menus
- Lyna takes the page pictures while the Site map is open on a computer, one page at a time, and keeps them for next time. Until a page has its picture, its card shows a sketch drawn from the page's code. A card without a picture says why: Loading preview, Needs values, Layout (no page of its own: its pages show inside), Empty page, Needs sign-in, Opens another page, Shows an error, or Couldn't capture with the reason and Retry. A page Lyna adds while the Site map is open gets its picture as soon as the preview serves it, and a page you rename keeps its picture. On a site in several languages, a page that sends visitors to the address of their language, such as
/articlesto/fr/articles, shows as the page itself. - Drag the cards to arrange them. Lyna keeps your arrangement for this project, also when you rename or protect a page, or undo it. Auto-arrange lays them out again, Fit to screen shows everything, and the mini map helps you move around a large site.
- Right-click a page, a link or a row (or press
Shift + F10) for its quick actions.
Keyboard
| Key | What it does |
|---|---|
| Arrow keys | Move to the nearest page in that direction |
Alt + arrow key | Move the selected card |
Enter | Preview the selected page (in Side by side) |
/ or Cmd + F (Ctrl + F on Windows) | Search |
F | Fit to screen |
Shift + L | Auto-arrange |
Delete | Remove the selected link |
Shift + F10 or the menu key | Open the quick actions of the selected card, line or row |
Esc | Go back one step, then close the view |
Cmd + Shift + M (Ctrl + Shift + M on Windows) | Open or close the Site map |
On a phone
On a phone, the Site map fills the screen: each page is a card with its links in and out, with a search and the issue filter. Tap a page to see its details in a sheet, or press and hold a page or a link for its quick actions. In Path from start, tap a step for the same actions as on a computer. Demo at the top plays the demo.
If you can only view a project, the Site map shows everything but changes nothing.
Start from a site template
Choose Start from a template in the Pages panel to browse full multi-page projects, ready to edit, in categories such as SaaS, Agency, Portfolio, Shop, Restaurant, Blog, Fitness, Events, Dashboard, CRM, Real estate and Health.
Before a template is applied, Lyna shows the files it creates and the files it replaces, and saves a restore point. After it is applied, choose Undo in the notification to go back.
Switch the page of a frame
Open the page picker in the frame bar above a frame and choose a page. See Frames and devices.
Related
Need help?
Ask the team, read what changed, or learn from the blog.


