Fix permalinks with trailing slash in paginations
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user