-
Notifications
You must be signed in to change notification settings - Fork 95
Autoreload not working when page or directory name is in Chinese #436
Description
Context
To test this issue I created a new local test site using the latest version of Zensical (0.0.26), installed with pip on a Linux system (Debian 13).
Bug description
I created a new site using zensical new and added two directories and a few files, as shown below:
├─docs/
├─ eng/
├─ test-en.md
├─ 測試英文.md
├─ 中文/
├─ test-zh.md
├─ 測試中文.md
|
zensical.toml
After starting the server with zensical serve, the only page the autoreloads in the browser when modified is docs/eng/test-en.md. The pages with Chinese names, or the pages inside a directory whose name is in Chinese are regenerated correctly by Zensical, but to see the changes it is necessary to manually reload the page in the browser.
The same happens when new files are created. Only those created in the directory tree that use only Latin characters are automatically reloaded and shown in the browser.
I'm using Firefox v. 148.0.2, but the same happens in Chromium (144.0.7559.103).
Related links
Reproduction
Steps to reproduce
- Run
zensical serve - Go to each page of the test-site
- Modify the page while displaying it in the browser
- Check if the page is automatically reloaded
- Try to create new files in the two directories (the one with Latin characters and the one with Chinese characters), and check if they are automatically added to the side bar).
Browser
Firefox, Chromium
Before submitting
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues.
- I assure that I have removed all customizations before submitting this bug report.
- I have attached a .zip file with a minimal reproduction.