# 모든 하위 페이지에서 잘못된 구조화된 데이터 제거 – ‘사이트 링크 검색 상자’는 홈페이지에만 추가

**URL:** <https://meta.discourse.org/t/remove-wrong-structured-data-from-every-subpage-add-sitelinks-search-box-to-the-homepage-only/219299>\
**Category:** Bug\
**Created:** [2월 24, 2022, 5:45오후 UTC](https://meta.discourse.org/t/remove-wrong-structured-data-from-every-subpage-add-sitelinks-search-box-to-the-homepage-only/219299 "2022-02-24T17:45:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rrit](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rrit](https://meta.discourse.org/u/rrit)\
**Post date:** [2월 24, 2022, 5:45오후 UTC](https://meta.discourse.org/t/remove-wrong-structured-data-from-every-subpage-add-sitelinks-search-box-to-the-homepage-only/219299/1 "2022-02-24T17:45:18Z")

</div>

요약: 현재 모든 페이지, 하위 페이지, 주제 등 모든 페이지에 대해 해당 페이지 자체의 `"url":"https://www.example.com/"`라고 Google에 전달하고 있습니다.  
– `https://meta.discourse.org/t/add-sitelinks-search-box-to-the-homepage-only/219299`와 같은 주제가 있는 페이지의 경우 이는 분명히 잘못된 것입니다.

* * *

현재 Sitelinks Search Box 코드는 모든 페이지, 카테고리 및 주제에 구현되어 있습니다:

```xml
<script type="application/ld+json">
{
  "@context":"http://schema.org",
  "@type":"WebSite",
  "url":"https://www.example.com/",
  "potentialAction":{
    "@type":"SearchAction",
    "target":"https://www.example.com/search?q={search_term_string}",
    "query-input":"required name=search_term_string"
  }
}
</script>

```

예를 들어 Google Search Console 보고서의 ‘Enhancements’ → '[Sitelinks searchbox](https://search.google.com/search-console/r/sitelinks-searchbox/drilldown?hl=en)’를 참조하세요.

 ![grafik](https://global.discourse-cdn.com/meta/original/3X/6/8/68d84f5836ecc992fe21d08e05225eb57e47da38.png)

Google의 지침에 따르면 이 마크업은 홈페이지에만 추가되어야 합니다:

> **[Removing sitelinks search box documentation - Latest Google Search Documentation...](https://developers.google.com/search/updates?hl=en#bye-sitelinkbox)**
>
> This page details the latest major updates made to the Google Search Central documentation. | Learn about the latest and most recent Google Search Central documentation updates. Stay current with what's new at Google Search Central.

> [@](#):
>
> 1. **사이트의 홈페이지에 `WebSite` 구조화 데이터 요소를 구현하세요.**
> 
> - 이 마크업은 홈페이지에만 추가하고 다른 페이지에는 추가하지 마세요.

* * *

> <https://github.com/discourse/discourse/pull/16157>
>
> Without this change the structured data element on every \*subpage\* declares the …\*homepage-url\* instead of \*subpage-url\*.
> 
> See https://developers.google.com/search/docs/advanced/structured-data/sitelinks-searchbox?hl=en#adding-structured-data
> \> 2. Implement the WebSite structured data element \*\*on the homepage\*\* for your site.
> \> - Add this markup \*\*only\*\* to the homepage, \*\*not to any other pages\*\*.
> 
> Discussion on \[meta.discourse.org\](https://meta.discourse.org/t/remove-wrong-structured-data-from-every-subpage-add-sitelinks-search-box-to-the-homepage-only/219299)

---

<div class="post-metadata">

**Author:** ![rrit](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rrit](https://meta.discourse.org/u/rrit)\
**Post date:** [3월 10, 2022, 3:34오후 UTC](https://meta.discourse.org/t/remove-wrong-structured-data-from-every-subpage-add-sitelinks-search-box-to-the-homepage-only/219299/2 "2022-03-10T15:34:32Z")

</div>

구글에 대한 추가 배경 정보: “[검색 스니펫 application/ld+json 데이터] 마크업을 **홈페이지에만** 추가하고, **다른 어떤 페이지에도 추가하지 마세요.** ”

이 `<script type='application/ld+json'>` 태그는 해당 태그가 정의된 실제 페이지/URL의 **콘텐츠** 에 대한 정보를 구글에게 제공합니다.

현재 우리는 **모든** 페이지, 하위 페이지, 주제, 그 어떤 것이든 해당 페이지 자체가 다음과 같다고 구글에게 알려주고 있습니다:

- `"@type":"WebSite"`
- `"url":"https://www.example.com/"`  
– 이는 URL이 `https://meta.discourse.org/t/add-sitelinks-search-box-to-the-homepage-only/219299`인 주제 페이지의 경우 확실히 잘못된 것입니다.

홈페이지를 제외한 모든 페이지에서 `application/ld+json data`를 제거해야 합니다.  
아니면 각 하위 페이지에 대해 해당 페이지의 콘텐츠를 나타내는 올바른 페이지별 `application/ld+json data`를 선언해야 합니다.

`List` 페이지(예: “Carousel”)에 `application/ld+json data`를 올바르게 사용하는 방법의 예시:

> **[Carousel (ItemList) Structured Data | Google Search Central  |  Documentation...](https://developers.google.com/search/docs/appearance/structured-data/carousel)**
>
> A Google carousel is a row of interactive visual search results. Explore this guide to learn about carousels in Google Search and how they can impact SEO.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [3월 12, 2022, 11:32오후 UTC](https://meta.discourse.org/t/remove-wrong-structured-data-from-every-subpage-add-sitelinks-search-box-to-the-homepage-only/219299/3 "2022-03-12T23:32:37Z")

</div>

네, 이 기능은 홈 페이지와 카테고리/태그 페이지에만 적용되어야 하며, 개선 PR을 환영합니다.

---

<div class="post-metadata">

**Author:** ![rrit](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rrit](https://meta.discourse.org/u/rrit)\
**Post date:** [3월 13, 2022, 7:36오후 UTC](https://meta.discourse.org/t/remove-wrong-structured-data-from-every-subpage-add-sitelinks-search-box-to-the-homepage-only/219299/4 "2022-03-13T19:36:52Z")

</div>

이 PR [DEV: output sitelinks search tag on homepage only - Pull Request #16157 - discourse/discourse - GitHub](https://github.com/discourse/discourse/pull/16157) 은 홈페이지를 제외한 모든 페이지에서 구조화된 데이터를 제거합니다. 여기서 말하는 홈페이지는 선택된 홈페이지를 의미하며, 예를 들어 homepage, categorie-overview, topic-list 등이 해당됩니다.

카테고리 및 태그 페이지에는 이러한 구조화된 데이터가 필요 없다고 판단하고 있습니다.

---

<div class="post-metadata">

**Author:** ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)\
**Post date:** [9월 26, 2022, 2:21오전 UTC](https://meta.discourse.org/t/remove-wrong-structured-data-from-every-subpage-add-sitelinks-search-box-to-the-homepage-only/219299/7 "2022-09-26T02:21:05Z")

</div>

> [@rrit](#):
>
> [DEV: output sitelinks search tag on homepage only by rr-it · Pull Request #16157 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/16157)가 모든 페이지의 구조화된 데이터를 제거합니다

안녕하세요, 훌륭한 PR을 올려주셔서 감사합니다. 이제 병합되었습니다.

---

<div class="post-metadata">

**Author:** ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)\
**Post date:** [9월 26, 2022, 2:21오전 UTC](https://meta.discourse.org/t/remove-wrong-structured-data-from-every-subpage-add-sitelinks-search-box-to-the-homepage-only/219299/8 "2022-09-26T02:21:10Z")

</div>


