Skip to content

Commit 28b794f

Browse files
committed
fix link 301 error
1 parent 280394d commit 28b794f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/server/renderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ export default class Renderer extends Model {
125125
title: item.data.title,
126126
tags: this.db.tags
127127
.filter((tag: ITag) => currentTags.find(i => i === tag.name))
128-
.map((tag: ITag) => ({ ...tag, link: urlJoin(themeConfig.domain, themeConfig.tagPath, `${tag.slug}`) })),
128+
.map((tag: ITag) => ({ ...tag, link: urlJoin(themeConfig.domain, themeConfig.tagPath, `${tag.slug}`, '/') })),
129129
date: item.data.date,
130130
dateFormat: (themeConfig.dateFormat && moment(item.data.date).format(themeConfig.dateFormat)) || item.data.date,
131131
feature: item.data.feature && !item.data.feature.includes('http')
132132
? `${helper.changeFeatureImageUrlLocalToDomain(item.data.feature, themeConfig.domain)}`
133133
: item.data.feature || '',
134-
link: urlJoin(themeConfig.domain, themeConfig.postPath, item.fileName),
134+
link: urlJoin(themeConfig.domain, themeConfig.postPath, item.fileName, '/'),
135135
hideInList: !!item.data.hideInList,
136136
isTop: !!item.data.isTop,
137137
stats,

0 commit comments

Comments
 (0)