优化专区文章详情页canonical #622

Merged
Eeeros merged 1 commits from Eeeros/forgeplus-react:gitlink_ssr_test into gitlink_ssr 2024-02-02 08:53:43 +08:00
1 changed files with 2 additions and 2 deletions

View File

@ -71,11 +71,11 @@ function NewsDetail(props){
document.title= zonedetail.name;
setSeoMeta(`${zonedetail.name},`, zonedetail.name, zonedetail.subTitle, `/zone/${deptId}`)
} else {
const { name, cmsDir, summary} = detail;
const { name, cmsDir, summary, id} = detail;
const title = `${ name }/${ cmsDir.name }`;
const keywords = `${ name },${ cmsDir.name },${ zonedetail.name }`;
document.title = title;
setSeoMeta(keywords, title, summary, `/zone/${deptId}`)
setSeoMeta(keywords, title, summary, `/zone/${deptId}/newdetail/${ id }`)
}
}