mirror of
https://github.com/traberph/short.git
synced 2026-11-22 22:55:12 +00:00
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:
@@ -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,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user