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

fix(ui): use the formatAdminUrl function to generate unpublish url (#15375)

### What?
The unpublish button on the admin panel sends a request to the wrong url
if the application has a base path configured in the next config. This
PR uses the formatAdminURL function to conditionally add the base path
if needed.

### Why?
Unpublish button does not work if base path is set.

### How?
Using the formatAdminURL correctly includes the basePath in the url

Fixes https://github.com/payloadcms/payload/issues/15369
M
Muhammad Hassaan Farooq committed
453e8a672fde4007921487d6f6dada1c97cbf375
Parent: 5658ec2
Committed by GitHub <noreply@github.com> on 1/27/2026, 5:53:29 PM