Fix custom parents in breadcrumbs

This commit is contained in:
Lea Verou
2024-12-17 14:38:02 -05:00
parent 5a82b7ad99
commit 1da80bee80

View File

@@ -40,7 +40,6 @@ export function getTitleFromUrl(url, collection) {
export function breadcrumbs(url, { withCurrent = false } = {}) {
const parts = url.split('/').filter(Boolean);
parts.pop(); // remove current page
const ret = [];
while (parts.length) {