Redirect Targets are not Orphaned
A pages that is linked-to, via a redirect, is not orphaned.
This commit is contained in:
parent
63fde3165e
commit
12207bc01c
3 changed files with 11 additions and 4 deletions
|
@ -67,8 +67,8 @@ class PageSet < Array
|
|||
if never_orphans.include? page.name
|
||||
false
|
||||
else
|
||||
# references = pages_that_reference(page.name)
|
||||
references = WikiReference.pages_that_reference(@web, page.name)
|
||||
references = WikiReference.pages_that_reference(@web, page.name) +
|
||||
WikiReference.pages_redirected_to(@web, page.name)
|
||||
references.empty? or references == [page.name]
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue