-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pages with numeric prefixes get their URLs mangled #1733
Comments
To follow up on this; I've managed to spot that this behaviour is sort of explained in the docs (confusingly, under |
FWIW I do have a workaround - renaming the page to |
Hello @ahnlak, thanks for your report. I thought about the problem and asked myself what would be the most practical and effective. 2 options identified for the moment:
|
As you say, it may be tricky to address the problem without impacting existing usage; it's easy enough to work with once you know it's there (I just switched to using spaces after any numeric-prefixed filenames), so perhaps it just needs to be more obviously documented - perhaps under file based routing, where the mapping between filename and URL is explained. |
Describe the bug
(sorry, me again!)
A page with an initial number (e.g.
1-number-test.md
) gets rendered asnumber-test/index.html
- that is to say, when the filename begins with a number, it's considered a prefix and stripped from the resulting URL.This may be intended behaviour (there seems to be code to actively strip prefixes), but it would be nice if it was configurable (or at least documented).
To reproduce
pages/1-number-test.md
cecil.phar build
_site/number-test/index.html
Expected behavior
I would prefer it to be:
_site/1-number-test/index.html
Version
7.43.0
Operating System
Ubuntu 20.04
Relevant log output
No response
The text was updated successfully, but these errors were encountered: