Skip to content

not-found.tsx exports no metadata, so 404 pages inherit the homepage's exact title/description and are never marked noindex #246

Closed

Description

@chonilius

src/app/not-found.tsx renders a custom 404 UI but exports no metadata object at all.
Next.js's App Router falls back to the nearest ancestor metadata export when a route
segment doesn't define its own — in this case, src/app/layout.tsx's root metadata:

export const metadata: Metadata = {
  title: "MergeFi | Merge code. Earn instantly.",
  description: "MergeFi is the financial infrastructure for open source: fund GitHub issues, escrow payment with Soroban smart contracts on Stellar, and pay contributors automatically when work is merged.",
};

So every 404 page in the app — reached via any mistyped URL, a stale bookmark, or a
broken link — has the exact same <title> and meta description as the homepage's
marketing pitch, with nothing distinguishing it as an error page in the document head.
There is also no robots: { index: false } (or equivalent) on this route, so nothing
tells a crawler this content is an error state rather than genuine indexable content —
combined with src/app/robots.ts's blanket allow: "/" (no disallow rules for anything),
search engines have no signal to avoid indexing 404 pages under MergeFi's homepage title
and description.

Suggested fix: export a metadata object from not-found.tsx with a distinct title
("Page not found | MergeFi") and robots: { index: false, follow: true }, so 404s are
both clearly labeled and correctly excluded from search indexing.

Activity

  1. added
    bug
    documentation
    very hard
    help wanted
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 24, 2026
  3. Adeyemi-cmd commented on Aug 24, 2026

    @Adeyemi-cmd

    @Adeyemi-cmd has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Can I please work on this

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Adeyemi-cmd to this issue.

  4. Juliet283 commented on Aug 24, 2026

    @Juliet283

    @Juliet283 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    This looks like a great issue to contribute to. I’m ready to dig into the problem, build a reliable fix, and help move the project forward. I’d be glad to take ownership of it.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Juliet283 to this issue.

  5. edehvictor commented on Aug 24, 2026

    @edehvictor
    Contributor

    @edehvictor has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hi maintainers!
    I’d love to help out with this issue. I’ve checked the current codebase/documentation and know exactly what needs to be updated to make this clearer. I will ensure everything aligns perfectly with your existing contribution guidelines.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @edehvictor to this issue.

  6. drips-wave commented on Aug 25, 2026

    @drips-wave

    Congratulations, @edehvictor! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @edehvictor: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  7. drips-wave commented on Aug 25, 2026

    @drips-wave

    This issue has been completed by @edehvictor as part of the Stellar Wave Program's 8th Wave 🥳

    😎 @edehvictor: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  8. removed
    Stellar Wave
    on Oct 15, 2026
  9. added
    Stellar Wave
    on Oct 15, 2026
  10. removed
    Stellar Wave
    on Oct 15, 2026
  11. added
    Stellar Wave
    on Oct 15, 2026
  12. removed
    Stellar Wave
    on Oct 15, 2026
  13. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar Wavebugdocumentationhelp wantedvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions