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

+16
View File
@@ -1309,6 +1309,22 @@ render-ok",
);
}
#[test]
fn ext_web_part_smoke() {
let status = Command::new("cargo")
.args(["build", "-p", "marqdo_plugin_web"])
.current_dir(env!("CARGO_MANIFEST_DIR"))
.status()
.expect("build web plugin");
assert!(status.success(), "failed to build marqdo_plugin_web");
assert_out(
"tests/ext/web-part-smoke.mq.md",
"route-stamp-ok
home-part-ok
route-part-ok",
);
}
#[test]
fn ext_agent_framework_smoke() {
let status = Command::new("cargo")