[PR #6004] Implement Share Links Feature #6618

Open
opened 2026-02-05 10:37:00 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/6004
Author: @dev
Created: 1/29/2026
Status: 🔄 Open

Base: developmentHead: development


📝 Commits (2)

  • 1c38c25 Implement a "share links" feature that allows users to create publicly accessible shareable links for books, chapters, and pages without requiring authentication.
  • b324911 Fix images

📊 Changes

38 files changed (+2008 additions, -29 deletions)

View changed files

📝 app/Activity/ActivityType.php (+3 -0)
app/Entities/Controllers/EntityShareLinkController.php (+124 -0)
app/Entities/Controllers/SharedContentController.php (+202 -0)
app/Entities/EntityShareLinkService.php (+171 -0)
app/Entities/Models/EntityShareLink.php (+88 -0)
📝 app/Http/Middleware/Authenticate.php (+11 -0)
📝 app/Permissions/Permission.php (+1 -0)
📝 app/Uploads/Controllers/AttachmentController.php (+36 -6)
📝 app/Uploads/ImageService.php (+30 -0)
database/migrations/2026_01_27_200505_create_entity_share_links_table.php (+35 -0)
database/migrations/2026_01_27_200600_add_content_share_manage_permission.php (+45 -0)
📝 lang/en/activities.php (+4 -0)
📝 lang/en/common.php (+3 -0)
📝 lang/en/entities.php (+26 -0)
📝 lang/en/errors.php (+3 -0)
📝 lang/en/settings.php (+4 -0)
📝 resources/sass/_layout.scss (+28 -0)
📝 resources/views/attachments/list.blade.php (+17 -3)
📝 resources/views/books/show.blade.php (+6 -0)
📝 resources/views/chapters/parts/child-menu.blade.php (+11 -1)

...and 18 more files

📄 Description

As requested in #288, #441, #687, #732, #979, #1215, #1279, #1551, #1802, #3479, #4611, #4712, #5105, #5650 :

This PR implements a "share links" feature that allows users to create publicly accessible shareable links for books, chapters, and pages without requiring authentication.

Features:

  • Create and manage share links for books, chapters, and pages
  • Public access via secure token-based URLs (/share/{token})
  • Navigation support within shared books and chapters
  • Share link management interface in settings
  • Activity logging for share link operations
  • Secure attachment URLs (token required)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/6004 **Author:** [@dev](https://github.com/dev) **Created:** 1/29/2026 **Status:** 🔄 Open **Base:** `development` ← **Head:** `development` --- ### 📝 Commits (2) - [`1c38c25`](https://github.com/BookStackApp/BookStack/commit/1c38c25c70fd37d3b2d4646105cbb620b9416ec1) Implement a "share links" feature that allows users to create publicly accessible shareable links for books, chapters, and pages without requiring authentication. - [`b324911`](https://github.com/BookStackApp/BookStack/commit/b324911a12544c37df50e850ec23ea40a01b21cc) Fix images ### 📊 Changes **38 files changed** (+2008 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `app/Activity/ActivityType.php` (+3 -0) ➕ `app/Entities/Controllers/EntityShareLinkController.php` (+124 -0) ➕ `app/Entities/Controllers/SharedContentController.php` (+202 -0) ➕ `app/Entities/EntityShareLinkService.php` (+171 -0) ➕ `app/Entities/Models/EntityShareLink.php` (+88 -0) 📝 `app/Http/Middleware/Authenticate.php` (+11 -0) 📝 `app/Permissions/Permission.php` (+1 -0) 📝 `app/Uploads/Controllers/AttachmentController.php` (+36 -6) 📝 `app/Uploads/ImageService.php` (+30 -0) ➕ `database/migrations/2026_01_27_200505_create_entity_share_links_table.php` (+35 -0) ➕ `database/migrations/2026_01_27_200600_add_content_share_manage_permission.php` (+45 -0) 📝 `lang/en/activities.php` (+4 -0) 📝 `lang/en/common.php` (+3 -0) 📝 `lang/en/entities.php` (+26 -0) 📝 `lang/en/errors.php` (+3 -0) 📝 `lang/en/settings.php` (+4 -0) 📝 `resources/sass/_layout.scss` (+28 -0) 📝 `resources/views/attachments/list.blade.php` (+17 -3) 📝 `resources/views/books/show.blade.php` (+6 -0) 📝 `resources/views/chapters/parts/child-menu.blade.php` (+11 -1) _...and 18 more files_ </details> ### 📄 Description As requested in #288, #441, #687, #732, #979, #1215, #1279, #1551, #1802, #3479, #4611, #4712, #5105, #5650 : This PR implements a "share links" feature that allows users to create publicly accessible shareable links for books, chapters, and pages without requiring authentication. Features: - Create and manage share links for books, chapters, and pages - Public access via secure token-based URLs (`/share/{token}`) - Navigation support within shared books and chapters - Share link management interface in settings - Activity logging for share link operations - Secure attachment URLs (token required) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:37:00 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#6618