Prevent linking to unpublished content
This commit is contained in:
parent
2608e870cc
commit
5cb0ef6b87
@ -361,6 +361,10 @@ struct PageContentGenerator {
|
||||
// Remove link since the page can't be found
|
||||
return ""
|
||||
}
|
||||
guard linkedPage.state == .standard else {
|
||||
// Prevent linking to unpublished content
|
||||
return ""
|
||||
}
|
||||
var content = [PageLinkTemplate.Key: String]()
|
||||
|
||||
content[.title] = linkedPage.title(for: language)
|
||||
|
Loading…
Reference in New Issue
Block a user