I cannot modify books through the API and add hyperlinks to the description content. #5350

Closed
opened 2026-02-05 09:59:38 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @AndreasByrsting on GitHub (Jul 10, 2025).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

When I use https://example/api/books/13 to update the book information, I pass both description and description_html, but the page does not render them as hyperlinks.

Just like this, this is (Search) , a content hyperlink that I manually created through the web page.
Image

What is the correct way to send a request structure with a hyperlink?

Exact BookStack Version

v25.05.1

Log Content


Hosting Environment

Cenos Stream - docker

Originally created by @AndreasByrsting on GitHub (Jul 10, 2025). ### Attempted Debugging - [x] I have read the debugging page ### Searched GitHub Issues - [x] I have searched GitHub for the issue. ### Describe the Scenario When I use `https://example/api/books/13` to update the book information, I pass both description and description_html, but the page does not render them as hyperlinks. Just like this, this is (Search) , a content hyperlink that I manually created through the web page. <img width="711" height="185" alt="Image" src="https://github.com/user-attachments/assets/93e895e1-011b-4e44-9127-3a988030f879" /> What is the correct way to send a request structure with a hyperlink? ### Exact BookStack Version v25.05.1 ### Log Content ```text ``` ### Hosting Environment Cenos Stream - docker
OVERLORD added the 🐕 Support label 2026-02-05 09:59:38 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jul 10, 2025):

Hi @AndreasByrsting,
Have you tried only setting the description_html (and not send the the description field). I think the description field is used primarily if provided (with the HTML auto generated from that) otherwise the description_html is used with the description generated from the HTML.

@ssddanbrown commented on GitHub (Jul 10, 2025): Hi @AndreasByrsting, Have you tried only setting the `description_html` (and not send the the `description` field). I think the description field is used primarily if provided (with the HTML auto generated from that) otherwise the `description_html` is used with the `description` generated from the HTML.
Author
Owner

@AndreasByrsting commented on GitHub (Jul 10, 2025):

Wow, I didn't try that operation. I just tried passing description_html, and it worked perfectly. Thank you for your help; I feel a bit foolish

@AndreasByrsting commented on GitHub (Jul 10, 2025): Wow, I didn't try that operation. I just tried passing description_html, and it worked perfectly. Thank you for your help; I feel a bit foolish
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5350