Open a link button's short link from the content tab

Link blocks get an arrow button, and their path becomes a link, both
leading to the short link's own page (analytics, QR code, settings).
Block targets now include their namespace so other users' links open
under Administration. The Link component accepts all anchor attributes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 17:36:03 +02:00
co-authored by Claude Opus 5.5
parent 5f30a6d448
commit 00f5fe1f33
4 changed files with 30 additions and 12 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ export function getBlocks(db: Db, pageId: number): Block[] {
kind: b.kind,
label: b.label,
markdown: b.markdown,
target: target ? { id: target.id, path: pagePath(target), dest: target.dest } : null,
target: target ? { id: target.id, namespace: target.namespace, path: pagePath(target), dest: target.dest } : null,
};
});
}