feat(BOOK-609): Using embedded url for assets instead of href since that is not updated when the asset is updated)
* feat(BOOK-609): Updated refs handling for assets inside content pages Approved-by: Linus Flood
This commit is contained in:
@@ -88,11 +88,15 @@ export function generateTagsFromSystem(
|
||||
})
|
||||
}
|
||||
|
||||
export function generateTagsFromAssetSystem(
|
||||
connections: AssetSystem["system"][]
|
||||
) {
|
||||
return connections.map((system) => {
|
||||
return generateTag(Lang.en, system.content_type_uid, system.uid)
|
||||
export function generateTagsFromAssetSystem(connections: AssetSystem[]) {
|
||||
return connections.map(({ system, url, permanent_url }) => {
|
||||
let affix = system.uid
|
||||
|
||||
if (permanent_url || url) {
|
||||
affix += `:${permanent_url || url}`
|
||||
}
|
||||
|
||||
return generateTag(Lang.en, system.content_type_uid, affix)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user