I am working on a project involving migrating a site with many static pages to Drupal 8. Since a number of the pages are old blog posts, there's often broken links, broken images, etc.
For quality assurance, we are using the httrack command line tool to traverse the new Drupal 8 site and report broken links and images.
It turns out that Drupal 8 is putting some extra
<link> tags in the page head (the
<head> section of the html, not the header region or anything like that).
First, when there is a page with a taxonomy term in it, there are links to the term's admin pages in the head, like so:
<link rel="devel-definition" href="/devel/taxonomy_term/226/definition" /> <link rel="clone-form" href="/entity_clone/taxonomy_term/226" /> <link rel="token-devel" href="/taxonomy/term/226/devel/token" /> <link rel="display" href="/taxonomy/term/226/manage-display" />
These links are on the page even for anonymous users.
Second, we have media images in our pages, and they are getting weird head link tags, also. For instance, if we have the image
inside-a-classroom.jpg, we'll have this:
<link rel="image_src" href="Inside A Classroom" />.
The problem is, httrack is finding these links in head, trying to download them, and returning a 404. And of course it would, because when it spiders, it's not logged on and can't access admin menus. In the case of images, they're not even proper links to the image.
Is there any way we can turn these off? They are false negatives in our scraping, and make it difficult to quality check our work.