Fix: 404 errors for static assets when using CMD_URL_PATH configuration by Yukaii · Pull Request #1943 · hackmdio/codimd

@Yukaii linked an issue

Sep 18, 2025

that may be closed by this pull request

@Yukaii

- Added support for a configurable URL path in the application, allowing static files and routes to be served under a specified path.
- Implemented redirection from the root to the configured URL path.
- Updated socket.io initialization to respect the URL path configuration.
- Enhanced middleware to prevent redirection for the URL path itself.

This change improves flexibility in routing and enhances the application's structure.

Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>