air-h-128k-il / covid19

新潟県(非公式) 新型コロナウイルス感染症対策サイト の「設計図」
https://stopcovid19-niigata-unofficial.netlify.app/
Other
1 stars 3 forks source link

How to localize about 'canonical' URL #73

Open air-h-128k-il opened 4 years ago

air-h-128k-il commented 4 years ago

I am new of nuxt.js and vue.js.

Therefore i have a question about 'cononical' URL.

I have asked it like the following: https://github.com/tokyo-metropolitan-gov/covid19/issues/3062

air-h-128k-il commented 4 years ago

and https://github.com/Stop-COVID19-Nagano/covid19/issues/101 (in Japanese)

air-h-128k-il commented 4 years ago

@mcdmaster wrote:

Can you please let me give you my opinion in Japanese? わかりやすくするために、日本語で回答したいです。よろしいですよね?

まず、長野県のサイトはあくまで長野県のサイトなので、この東京都のサイトが "Canonical" (正式版、みたいな意味合いでしょうか)とはかならずしもならない、というのが私の考え方です。 違う言い方をすれば、もしも東京都のサイトが長野県のサイトに対し "Canonical" であるなら、東京都の側にも "Canonical" としての責任が発生します。 たとえば、長野県に留まらず他道府県のサイトの進捗度合いを、"Canonical" な東京都のチームメンバーが監視するなんてことが求められるわけです。それは、違いますよね?

むしろ、既に各所でも報道されているように、改変と再配布が自由なオープンソース・ライセンスを元に各道府県の開発者の皆さんが次々と、もしかしたら東京都よりも優れた COVID-19 対策サイトを作れる、という利点に目を向けていただければと願います

air-h-128k-il commented 4 years ago

In layouts/default.vue , we should change the following:

head(): MetaInfo {
const { htmlAttrs } = this.$nuxtI18nSeo()
return {
htmlAttrs,
link: [
{
rel: 'canonical',
href: https://stopcovid19.metro.tokyo.lg.jp${this.$route.path}
}
]
}
}

into YourLocalizedURL like 'hogehoge.org'