Open
Description
Describe the bug
Given the following resource from app/layout.tsx:
`
import routerProvider from "@refinedev/nextjs-router";
...
{
name: "gatherings",
show: "/gatherings/:gatheringType/show/:id",
},
`
and the following from gatherings/list.tsx
`
import {
ShowButton
} from "@refinedev/chakra-ui";
<ShowButton
resource="gatherings"
recordItemId={info.getValue() as number}
meta={{ "gatheringType": "collaboration" }}
/>
`
shouldn't the list page display a Show button with a link to gatherings/collaboration/2
or whatever the id is?
instead the show button links to gatherings/:gatheringType/2
. This is not as intended.
am i missing something or is this a bug?
this is refine v4.57.5
Steps To Reproduce
- create a resource as above
- create a list page w/ ShowButton as above
- view the compiled list page's ShowButton url.
Expected behavior
the URL should be correct
Packages
- @refinedev/chakra-ui
- @refinedev/nextjs-router
Additional Context
No response