Skip to content

Commit

Permalink
fix: page has links to redirect ppoffice#1314
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetfulengineer committed Oct 3, 2024
1 parent 4d7c545 commit eb3c80a
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 eb3c80a

Please sign in to comment.