Skip to content

Pages with numeric prefixes get their URLs mangled #1733

@ahnlak

Description

@ahnlak

Describe the bug

(sorry, me again!)

A page with an initial number (e.g. 1-number-test.md) gets rendered as number-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

  1. Create a page with a numeric prefix - e.g. pages/1-number-test.md
  2. Build the site - cecil.phar build
  3. Output appears in _site/number-test/index.html

Expected behavior

I would prefer it to be:

  1. Output appears in _site/1-number-test/index.html

Version

7.43.0

Operating System

Ubuntu 20.04

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions