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 3, 2024
1 parent 6d76665 commit c3a91ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/name/wiki.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ def check_wikispecies
issues << 'missing page'
else
xml = Nokogiri::HTML.parse(doc)
if xml.xpath("//a[@href='#{seqcode_url(true)}']").empty?
issues << "SeqCode entry not linked"
end
if parent && parent != self
if xml.xpath("//a[@href='/wiki/#{parent.wiki_url_name}']").empty?
issues << "parent not linked: #{parent.name}"
Expand Down

0 comments on commit c3a91ab

Please sign in to comment.