Skip to content

[Content directory > Ordering] Numeric prefixes appear in the url if the file name is also numeric #2806

Open
@ndrbrt

Description

@ndrbrt

Environment

  • Operating System: Darwin
  • Node Version: v20.11.1
  • Nuxt Version: 3.13.2
  • CLI Version: 3.14.0
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Create files:

  • content/articles/1.947624.md
  • content/articles/2.a947624.md

Describe the bug

The file content/articles/1.947624.md results in the url <host>/articles/1.947624 (the expected url <host>/articles/947624 returns a 404).
The only way not to show the numeric prefix in the url is naming a file with an initial letter: the file content/articles/2.a947624.md results in the url <host>/articles/a947624 (as expecetd)

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions