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
Description
React generator has problem with paths for resources.
I generated a client using https://demo.api-platform.com/, while the generated routes have paths like /admin/books/create the Show components has paths like <Navigate to="/books/" replace />
How to reproduce
Generate a client with rm -rf ./tmp && yarn build && ENTRYPOINT=https://demo.api-platform.com/ ./testgen.sh react
Description
React generator has problem with paths for resources.
I generated a client using https://demo.api-platform.com/, while the generated routes have paths like
/admin/books/create
the Show components has paths like<Navigate to="/books/" replace />
How to reproduce
rm -rf ./tmp && yarn build && ENTRYPOINT=https://demo.api-platform.com/ ./testgen.sh react
tmp/react/routes/book.tsx
you will seetmp/react/components/book/Show.tsx
and you can seePossible Solution
Use the same variable in all template when generating routes and links
Additional Context
PR here : #377
The text was updated successfully, but these errors were encountered: