SIGN IN SIGN UP
payloadcms / payload UNCLAIMED

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.

0 0 16 TypeScript

feat(plugin-nested-docs): add req parameter to GenerateURL and GenerateLabel types in nested docs (#14617)

### What?
Add `req` to the generateURL and generateLabel functions

### Why?
It provides more flexibility when creating a label or url, in my case I
missed the option to read out the current used locale.

### How?
By adding a `req` property to `formatBreadcrumbs` and passing it along
to `generateURL` and `generateLabel`

Fixes #
-

Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com>
R
Rick Geersing committed
6821a0966a7b202cc06990787d416fe27ca32cb0
Parent: 0e27f19
Committed by GitHub <noreply@github.com> on 1/13/2026, 4:59:58 AM