fix: page has links to redirect #1314

pull/1324/head
forgetfulengineer 2024-10-03 17:37:47 +08:00
parent 4d7c54573c
commit eb3c80a449
3 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ module.exports = class extends Component {
<div class="card-content"> <div class="card-content">
<nav class="breadcrumb" aria-label="breadcrumbs"> <nav class="breadcrumb" aria-label="breadcrumbs">
<ul> <ul>
<li><a href={url_for('/categories')}>{_p('common.category', Infinity)}</a></li> <li><a href={url_for('/categories/')}>{_p('common.category', Infinity)}</a></li>
{page.parents.map(category => { {page.parents.map(category => {
return <li><a href={url_for(category.path)}>{category.name}</a></li>; return <li><a href={url_for(category.path)}>{category.name}</a></li>;
})} })}

View File

@ -11,7 +11,7 @@ module.exports = class extends Component {
<div class="card-content"> <div class="card-content">
<nav class="breadcrumb" aria-label="breadcrumbs"> <nav class="breadcrumb" aria-label="breadcrumbs">
<ul> <ul>
<li><a href={url_for('/tags')}>{_p('common.tag', Infinity)}</a></li> <li><a href={url_for('/tags/')}>{_p('common.tag', Infinity)}</a></li>
<li class="is-active"><a href="#" aria-current="page">{page.tag}</a></li> <li class="is-active"><a href="#" aria-current="page">{page.tag}</a></li>
</ul> </ul>
</nav> </nav>

View File

@ -134,17 +134,17 @@ Profile.Cacheable = cacheComponent(Profile, 'widget.profile', props => {
post: { post: {
count: postCount, count: postCount,
title: _p('common.post', postCount), title: _p('common.post', postCount),
url: url_for('/archives') url: url_for('/archives/')
}, },
category: { category: {
count: categoryCount, count: categoryCount,
title: _p('common.category', categoryCount), title: _p('common.category', categoryCount),
url: url_for('/categories') url: url_for('/categories/')
}, },
tag: { tag: {
count: tagCount, count: tagCount,
title: _p('common.tag', tagCount), title: _p('common.tag', tagCount),
url: url_for('/tags') url: url_for('/tags/')
} }
}, },
followLink: follow_link ? url_for(follow_link) : undefined, followLink: follow_link ? url_for(follow_link) : undefined,