green-labs / rescript-in-korean

리스크립트 한국어 판

Home Page:https://green-labs.github.io/rescript-in-korean/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Canonical URL

lannex opened this issue · comments

-
안녕하세요.

아래와 같이 canonical url에 /rescript-in-korean 가 중복되어 들어가는 이슈가 있습니다.

<link rel="canonical" href="https://green-labs.github.io/rescript-in-korean/rescript-in-korean/Language-Features/02-Let-Binding" data-react-helmet="true">

확인해보니 siteUrl에도 존재하고 pathPrefix값에도 해당값이 들어가 있습니다.

// config.js
pathPrefix: '/rescript-in-korean',
siteUrl: 'https://green-labs.github.io/rescript-in-korean',
// docs.js
let canonicalUrl = config.gatsby.siteUrl;
canonicalUrl =
  config.gatsby.pathPrefix !== '/' ? canonicalUrl + config.gatsby.pathPrefix : canonicalUrl;
canonicalUrl = canonicalUrl + mdx.fields.slug;

Pull Request가 안되어 이슈 남깁니다.

감사합니다.

감사합니다! canonical 을 원문 주소로 변경하였습니다.