Open
Description
Hey,
can you get a slug from a relation and put int as a prefix to preview URL?
for example on the production, the URL would look like this: /brand/[brand-slug]/model/[model-slug]
I would have a model collection type related to the brand. How can I put the brand slug into the URL?
My plugin config would look like this:
{
uid: 'api::model.model',
draft: {
url: 'http://localhost:3000/brand/{brand.slug}/model/{slug}',
alwaysVisible: true
}
}
Metadata
Metadata
Assignees
Labels
No labels