Skip to content

Commit

Permalink
Merge pull request #1324 from forgetfulengineer/official_issue
Browse files Browse the repository at this point in the history
fix: page has links to redirect #1314
  • Loading branch information
ppoffice authored Oct 4, 2024
2 parents 4d7c545 + eb3c80a commit 27f0afe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion layout/category.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = class extends Component {
<div class="card-content">
<nav class="breadcrumb" aria-label="breadcrumbs">
<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 => {
return <li><a href={url_for(category.path)}>{category.name}</a></li>;
})}
Expand Down
2 changes: 1 addition & 1 deletion layout/tag.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = class extends Component {
<div class="card-content">
<nav class="breadcrumb" aria-label="breadcrumbs">
<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>
</ul>
</nav>
Expand Down
6 changes: 3 additions & 3 deletions layout/widget/profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,17 @@ Profile.Cacheable = cacheComponent(Profile, 'widget.profile', props => {
post: {
count: postCount,
title: _p('common.post', postCount),
url: url_for('/archives')
url: url_for('/archives/')
},
category: {
count: categoryCount,
title: _p('common.category', categoryCount),
url: url_for('/categories')
url: url_for('/categories/')
},
tag: {
count: tagCount,
title: _p('common.tag', tagCount),
url: url_for('/tags')
url: url_for('/tags/')
}
},
followLink: follow_link ? url_for(follow_link) : undefined,
Expand Down

0 comments on commit 27f0afe

Please sign in to comment.