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