Resolve /_part against home or routed pages.

Stamp _route on app.route pages and emit {path}/_part/{id} slot sources so partials refresh the correct page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-12 09:05:50 +08:00
1 parent b09538d242
commit 02b3dfab48
8 files changed
+137 -16

No files matched your search

+1 -1
View File
@@ -198,6 +198,6 @@ Register `GET|POST /_form/{id}` for listen when the form is not already embedded
## listen
Serve `/`, routed pages, `/_part/{id}`, `/_form/{id}` (from mounts + page embeds), and optional `/admin`.
Serve `/`, routed pages, `/_part/{id}` (home) and `{path}/_part/{id}` (routes), `/_form/{id}` (from mounts + page embeds), and optional `/admin`.
**> web_listen app=`self`**