Books whose names have accents, generate slugs with errors #1436

Closed
opened 2026-02-05 00:53:49 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @carlosmprzmx on GitHub (Nov 2, 2019).

Describe the bug
Books whose names have accents, generate slugs with accents and a 404 error occurs when trying to access them

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to a Shelve
  2. Click on New Book
  3. Name it with something like "Canción" and save it.
  4. Try to access to the new book and you going to get an 404 error.

Expected behavior
Book correctly showed.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): v0.27.5
  • PHP Version: 7.3
  • Hosting Method (Nginx/Apache/Docker): Nginx
Originally created by @carlosmprzmx on GitHub (Nov 2, 2019). **Describe the bug** Books whose names have accents, generate slugs with accents and a 404 error occurs when trying to access them **Steps To Reproduce** Steps to reproduce the behavior: 1. Go to a Shelve 2. Click on New Book 3. Name it with something like "Canción" and save it. 4. Try to access to the new book and you going to get an 404 error. **Expected behavior** Book correctly showed. **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): v0.27.5 - PHP Version: 7.3 - Hosting Method (Nginx/Apache/Docker): Nginx
OVERLORD added the 🔍 Pending Validation label 2026-02-05 00:53:49 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 15, 2019):

Hi @carlosmprzmx,
Sorry to hear you are having issues, Are you able to replicate this issue on the demo site:?
https://demo.bookstackapp.com/books/bookstack-user-guide/page/logging-in-to-the-demo-site

@ssddanbrown commented on GitHub (Nov 15, 2019): Hi @carlosmprzmx, Sorry to hear you are having issues, Are you able to replicate this issue on the demo site:? https://demo.bookstackapp.com/books/bookstack-user-guide/page/logging-in-to-the-demo-site
Author
Owner

@carlosmprzmx commented on GitHub (Nov 16, 2019):

on demo site not happens, maybe a problem with my Nginx

@carlosmprzmx commented on GitHub (Nov 16, 2019): on demo site not happens, maybe a problem with my Nginx
Author
Owner

@ssddanbrown commented on GitHub (Nov 16, 2019):

Can't think of anything on nginx, off the top of my head, that could cause this. Do you have php-mbstring installed?

@ssddanbrown commented on GitHub (Nov 16, 2019): Can't think of anything on nginx, off the top of my head, that could cause this. Do you have `php-mbstring` installed?
Author
Owner

@drzippie commented on GitHub (Jun 25, 2020):

This is solved by using slugs that only contain characters that are the same encoded in a url (urlencode) as the original, that's why this change (#2165) solves that problem, as there are no characters that nginx or its rules take incorrectly

@drzippie commented on GitHub (Jun 25, 2020): This is solved by using slugs that only contain characters that are the same encoded in a url (urlencode) as the original, that's why this change (#2165) solves that problem, as there are no characters that nginx or its rules take incorrectly
Author
Owner

@ssddanbrown commented on GitHub (Jun 27, 2020):

Closing this since, as said above, this should be resolved by #2165 which will be part of the next feature release.

If you still have issues after updating to v0.30 (Once it's released) feel free to open a new issue here.

@ssddanbrown commented on GitHub (Jun 27, 2020): Closing this since, as said above, this should be resolved by #2165 which will be part of the next feature release. If you still have issues after updating to v0.30 (Once it's released) feel free to open a new issue here.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1436