## Description Fixes an issue where if you define a `basePath` in your `next` config, the logout button would redirect you to `/admin/logout` instead of `/basePath/admin/logout` causing a 404. - [x] I have read and understand the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository. ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## Checklist: - [x] Existing test suite passes locally with my changes