Allow renaming shortcodes

Shortcodes can now be changed via PATCH /pages/:id with the same
validation as on create (format, collisions, reserved root codes,
usernames). Stats, link buttons and the homepage pin follow the page.

The settings tab shows a warning while editing and asks for
confirmation, since the old URL stops working immediately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 16:02:52 +02:00
co-authored by Claude Opus 5.5
parent 3929ed7663
commit 90cc10de10
6 changed files with 131 additions and 13 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ authenticated against an existing Authentik instance.
## Links
- **R7** The shortcode is either typed in or, if left empty, randomly generated (5 characters).
- **R8** Destinations must be `http(s)://`. Reserved codes are blocked.
- **R9** Destinations can be edited. Links use 302 redirects.
- **R9** Destinations and shortcodes can be edited. Renaming a shortcode breaks the old URL, so the UI asks for
confirmation. Links use 302 redirects.
- **R10** Deleting a link removes its stats and its buttons on link pages, in one transaction.
- **R11** An admin can pin the root `/` to any page.