Skip to content

Incorrect page name adjustment when page title ends in number #1192

Open
@Toutouwai

Description

@Toutouwai

Short description of the issue

Page structure:

2020-06-10_094427

Expected page names:
october-2018
october-2018-1

Actual page names
october-2018
october-2019

I get that the method that adjusts conflicting page names is interpreting the number at the end as an auto-incremented suffix but is it possible to avoid this kind of false positive? Maybe when a page name has had an auto-incremented suffix added there could be some flag that indicates this stored in $page->meta()?

Related forum topic: https://processwire.com/talk/topic/23804-auto-incrementing-page-names-with-trailing-number-year/

Setup/Environment

  • ProcessWire version: 3.0.155

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions