Resolve "Rework Breadcrumbs"
Closes #245 (closed), #235 (closed)
Breadcrumbs can be defined in the route definition with a string or react element:
handle: {
breadcrumb: 'Jobs',
},
or with a function of the path paremeters, returning a string or react element:
handle: {
breadcrumb: ({ doiPrefix, doiSuffix }: any) => (
<DOIBadge doi={`${doiPrefix}/${doiSuffix}`} />
),
},
Edited by Mael Gaonach