Fix permalinks with trailing slash in paginations

This commit is contained in:
prototypa
2022-11-04 02:40:07 +01:00
parent 3f59cdfda2
commit e50a5668a1
2 changed files with 6 additions and 2 deletions

View File

@ -42,6 +42,9 @@ export const getPermalink = (slug = '', type = 'page') => {
case 'post':
return createPath(basePathname, POST_BASE, _slug);
case 'raw':
return createPath(basePathname, trimSlash(slug));
case 'page':
default:
return createPath(basePathname, _slug);