Skip to content

Resolve "Rework Breadcrumbs"

Mael Gaonach requested to merge 245-rework-breadcrumbs into main

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}`} />
    ),
},

image

Edited by Mael Gaonach

Merge request reports

Loading