Use title as backLink instead of parent text

This commit is contained in:
Christoph Hagen 2022-08-30 11:28:55 +02:00
parent 5ec283e4d4
commit a6472ba5a8

View File

@ -189,7 +189,7 @@ extension Element.LocalizedMetadata {
.required(linkPreviewDescription, name: "linkPreviewDescription", source: source)
.ifNil(markAsIncomplete) ?? ""
self.moreLinkText = log.moreLinkText(data.moreLinkText, parent: parent.moreLinkText, source: source)
self.backLinkText = data.backLinkText ?? parent.backLinkText
self.backLinkText = data.backLinkText ?? data.title ?? ""
self.parentBackLinkText = parent.backLinkText
self.placeholderTitle = data.placeholderTitle ?? parent.placeholderTitle
self.placeholderText = data.placeholderText ?? parent.placeholderText