You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reindex button from the search plugin calls incorrect URL when using Next's basePath option.
In this picture, I've set the basePath to /payload, so API routes are under /payload/api, but the reindex button calls /api without the prefix, causing it to return 404.
Describe the Bug
The reindex button from the search plugin calls incorrect URL when using Next's basePath option.
In this picture, I've set the basePath to
/payload
, so API routes are under/payload/api
, but the reindex button calls/api
without the prefix, causing it to return 404.Link to the code that reproduces this issue
https://github.com/suphon-t/payload/tree/reproduce/search-reindex-next-basepath
Reproduction Steps
npx create-payload-app
next.config.mjs
and setbasePath
to something (in this case, I set it to/payload
)Which area(s) are affected? (Select all that apply)
plugin: search
Environment Info
The text was updated successfully, but these errors were encountered: