---
title: "Discussion on \"Next.js metadata openGraph not inherited: why my subpages lost og:site_name\" | Hashnode"
description: "Discussion on \"Next.js metadata openGraph not inherited: why my subpages lost og:site_name\". Next.js merges metadata shallowly, so a page that sets openGraph drops the layout's og:site_name, og:locale and twitter handles. How I found it and fixed it."
url: "https://hashnode.com/posts/nextjs-metadata-opengraph-merge/6af3aec429c64eb6fbf06cec"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Next.js metadata openGraph not inherited: why my subpages lost og:site\_name](https://mohamedgado.hashnode.dev/nextjs-metadata-opengraph-merge?utm_source=hashnode&utm_medium=feed)

Next.js merges metadata shallowly, so a page that sets openGraph drops the layout's og:site\_name, og:locale and twitter handles. How I found it and fixed it.

7h ago · 6 min read · mohamedgado.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#seo](https://hashnode.com/tag/seo)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Mohamed Gado](https://hashnode.com/@mohamedgado)

@mohamedgado · Tanta, Egypt

  
[View profile](https://hashnode.com/@mohamedgado)

Senior Software Engineer · React, Next.js, React Native · Building Masareef & Rafiq

Senior Software Engineer with 6+ years building web and mobile products in React, Next.js and React Native. I build and ship Masareef and Rafiq on my own. Originals live at mohamedgado.com/writing.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
