You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] pages_folder written with "/" on Windows gives wrong page module names and paths #4217
On Windows, a pages_folder written with forward slashes, such as pages_folder="src/pages", makes every page module name contain a / and keeps the folder in the inferred page path.
os.path.join(root, "src/pages") gives a mixed path, and _path_to_module_name only splits on os.sep (a backslash on Windows). The module name becomes src/pages.home. _infer_path then looks for the folder name pages as a whole dotted part, does not find it, and keeps the whole name.
The same app with pages_folder="src\pages" gives the expected output, so page URLs change with how the folder is written.
The repo's own tests show it too: on Windows, tests/unit/pages has 6 failures on dev, among them four test_path_to_module_name cases with / paths and test_import_layouts_from_pages[...sub_dir/custom_pages...].
Activity
T4rk1n commentedon Nov 30, 2026
Fix in progress in #4218.