Skip to content

Broken metadata on custom admin routes #11580

Open

Description

@damnsamn

Describe the Bug

When customising admin routes, the page title and favicon present as if we've hit a 404, rather than an expected route.

Broken custom route metadata:
Image

Expected default route metadata:
Image

Link to the code that reproduces this issue

https://github.com/damnsamn/blank-payload-project/tree/issue/custom-route-meta

Reproduction Steps

  1. Customise admin.routes.login
  2. Add a custom favicon via admin.meta.icons
  3. Navigate to payload's login screen, and see the default favicon and "Not Found" page title.
  4. Log in to see the custom favicon and correct page title

Which area(s) are affected? (Select all that apply)

area: core

Environment Info

Binaries:
  Node: 22.12.0
  npm: 10.9.0
  Yarn: N/A
  pnpm: 9.15.6
Relevant Packages:
  payload: 3.27.0
  next: 15.2.0
  @payloadcms/db-mongodb: 3.27.0
  @payloadcms/email-nodemailer: 3.27.0
  @payloadcms/graphql: 3.27.0
  @payloadcms/next/utilities: 3.27.0
  @payloadcms/payload-cloud: 3.27.0
  @payloadcms/richtext-lexical: 3.27.0
  @payloadcms/translations: 3.27.0
  @payloadcms/ui/shared: 3.27.0
  react: 19.0.0
  react-dom: 19.0.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.0.0: Mon Aug 12 20:52:31 PDT 2024; root:xnu-11215.1.10~2/RELEASE_ARM64_T6030
  Available memory (MB): 18432
  Available CPU cores: 12

Activity

  1. added
    status: needs-triage
    validate-reproduction
    on Mar 7, 2025
  2. added and removed
    validate-reproduction
    on Mar 7, 2025
  3. self-assigned this
    on Mar 7, 2025
  4. removed
    status: needs-triage
    on Mar 7, 2025
  5. JessRynkar commented on Feb 20, 2026

    @JessRynkar
    Member

    Hi! Apologies for the long delay in getting a response here, are you still experiencing this on the latest version v3.77.0?

  6. damnsamn commented on Feb 24, 2026

    @damnsamn
    ContributorAuthor

    Thanks for the follow-up - it does look like this is still happening:
    Image

    Binaries:
      Node: 25.5.0
      npm: 11.8.0
      Yarn: 1.22.22
      pnpm: 10.17.1
    Relevant Packages:
      payload: 3.77.0
      next: 16.1.6
      @payloadcms/db-mongodb: 3.77.0
      @payloadcms/email-resend: 3.77.0
      @payloadcms/graphql: 3.77.0
      @payloadcms/live-preview: 3.77.0
      @payloadcms/live-preview-react: 3.77.0
      @payloadcms/next/utilities: 3.77.0
      @payloadcms/plugin-cloud-storage: 3.77.0
      @payloadcms/plugin-form-builder: 3.77.0
      @payloadcms/richtext-lexical: 3.77.0
      @payloadcms/richtext-slate: 3.77.0
      @payloadcms/translations: 3.77.0
      @payloadcms/ui/shared: 3.77.0
      react: 19.2.4
      react-dom: 19.2.4
    Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 24.0.0: Mon Aug 12 20:52:31 PDT 2024; root:xnu-11215.1.10~2/RELEASE_ARM64_T6030
      Available memory (MB): 18432
      Available CPU cores: 12
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions