-
-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Description
API Platform version(s) affected: 0.5.1
Description
Url to child objects is broken due to invalid router-link
usage.
How to reproduce
npx @api-platform/client-generator https://demo.api-platform.com src/ --generator vue
Possible Solution
We should always using:
<router-link
v-for="link in item['reviews']"
:key="link['@id']"
:to="{ name: 'ReviewShow', params: { id: link['@id'] } }"
>
Instead of:
<router-link
v-for="link in item['reviews']"
:key="link['@id']"
:to="`/reviews/show/${link['@id']}`"
>
Additional Context
Metadata
Metadata
Assignees
Labels
No labels