Skip to content

Commit

Permalink
Update wiki.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
lmrodriguezr committed Dec 13, 2024
1 parent 4c275fb commit 251aa84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/name/wiki.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def check_wikispecies
if xml.xpath("//a[@href='#{seqcode_url(true)}']").empty?
issues << "SeqCode entry not linked"
end
if parent && parent != self
if parent && parent.validated? && parent != self
i = parent.wiki_url_name
unless xml.xpath("//a[@href='/wiki/#{i}']").any? ||
xml.xpath("//a[starts-with(@href,'/w/index.php?title=#{i}&')]").any?
Expand Down

0 comments on commit 251aa84

Please sign in to comment.