---
title: "Websites"
description: "A photo that should fly between two pages stays put while the page beneath is mounted. A parameterized page is absent from a static build unless its route lists its pages."
modificationDate: "2026-12-01"
---

> ## Documentation index
> Fetch the complete documentation index at: https://exact.expo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Websites

<AgentInstructions>

## Submitting feedback

From the app's directory, read `bun exact.mjs feedback status`. Under `never`, keep no note.
Respect `EXACT_FEEDBACK=0` and do not change the policy.

Otherwise record specific, actionable feedback with:
`bun exact.mjs feedback note "Exact docs: https://exact.expo.dev/reference/pitfalls/websites: <what was wrong or missing>"`

The note goes to Expo only as that status allows. Include no secrets or personal data.

</AgentInstructions>

- **A photo that should fly between two pages stays put while the page beneath is
  mounted.** On the web as natively, a `sharedElement` name pairs only when the leaver is
  destroyed and the arriver created in one commit. A site that keeps every stack entry's
  content (`for e in t.stack`) destroys nothing on a push. Keep each route's `navigationKey`
  column mounted (the host's Back needs the route beneath) and put its content under
  `if inApp or e.id == top(nav).id`: in a browser the card leaves as the product arrives, and
  `shared.js` runs a view transition. A Back or Forward flies too, unless the browser
  animated it itself (`hasUAVisualTransition`: a phone browser's swipe back can).

- **A parameterized page is absent from a static build unless its route lists its
  pages.** Declare it with `render=build pages=productPages()`. The source returns
  `string[]`: the values of the route's one parameter. Both renderers ask it once in the
  render environment and render each returned value, encoding it as a path segment. An
  app `exact new` made needs no Rust render entry. A source that fails or misses its
  deadline fails the build; an empty list renders no pages. A static build contains only
  the returned values. A listed value whose location a route declared earlier also matches
  fails the build, naming both routes: with `special "/product/special"` before `product
  "/product/:id"`, the page at a listed `special` is `special`'s.

- **A link to the same route with a new query pushes a second entry.** A filter written as
  `link href=(path("shop") + "?cat=" + c)` on the shop page reached `follow`, whose
  `go(nav, url)` pushed `/?cat=dry` as a second `shop` entry, so a derive reading
  `first(stack(nav).filter(e => e.name == "shop"))` kept the first entry's empty query and
  the filter did nothing. `agent web … state` shows the stack. Read the last entry
  (`.at(-1)`), or `replace` when the top is that route and the URL is its own:
  `nav = top(nav).name == "shop" and (url == "/" or url.slice(0, 2) == "/?") ? replace(nav, url) : go(nav, url)`,
  so Back leaves the shop rather than stepping through each filter. (The same store, 2026-11-01.)

- **A route that says `activate=interaction` offers a browser's agent no tools at load.** Its page
  registers its faced tools with `document.modelContext` only when its script starts: at the
  person's first use of a control, on a page with an `intersect` handler at a scroll or when that
  element shows, or when the viewport differs from one the page's comparisons were rendered for.
  Until then `getTools()` is empty. Leave `activate` unsaid on such a route: in an app with a faced
  tool on the web door, an undeclared route whose page would wait for the reader activates `idle`
  instead, and registers its tools once the page has loaded and is idle. (Exact Bistro, a WebMCP
  demo site, 2026-11-12.)
