Skip to content

Commit

Permalink
Update wiki.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
lmrodriguezr committed Nov 24, 2024
1 parent 455afc0 commit c88284c
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 @@ -65,7 +65,7 @@ def check_wikispecies
issues << 'missing page'
else
xml = Nokogiri::HTML.parse(doc)
if parent && parent == self
if parent && parent != self
if xml.xpath("//a[@href='/wiki/#{parent.wiki_url_name}']").empty?
issues << "parent not linked: #{parent.name}"
end
Expand Down

0 comments on commit c88284c

Please sign in to comment.