Skip to content

404 on page creation when path name starts with »admin« #2513

Description

@rwam

CONTEXT

We are creating a knowledgebase for our software product. And the product has an area «Administration» so we like to create a corresponding area in our documentation.

EXPECTED BEHAVIOR

Create a page with title Administration with subfolders resp. subpages.

CURRENT BEHAVIOR

Neither a page Administration nor subpages cannot be created if the folder name on the root level starts with admin

STEPS TO REPRODUCE

Easy to reproduce

I'm locally on grav.localhost but the behavior is independent of the domain and environment.

  1. Add a page:
    Image
  2. Press Continue
  3. Result: redirect to http://grav.localhost/pages/administration/:add which results in an 404
    Image

Not as easy to reproduce because the error exists after renaming

  1. Add a page Management on the root level; add content, subpages, modules and so on → everything works fine
  2. Rename the folder on the tab Advanced to administration
    Image
  3. Result: everyhing seems to work but you cannot add subpages or modules → result on creation is a redirect and a 404

It seems that it doesn't matter how the folder name is in general as long as it doesn't start with “admin”. Tried different folder names:

  • administration → 404
  • administrator → 404
  • badminton → no issue
  • home-administration → no issue
  • admin-it-doesnt-matter-whats-coming-next → 404

This issue applies only to the top level. Having a folder administration on a deeper level does not have any issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions