Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
Add rel= canonical to remove list
Browse files Browse the repository at this point in the history
  • Loading branch information
koddr authored Sep 19, 2017
1 parent 20001e3 commit 4654021
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unset_html_head_link.module
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ function _remove_header_links(array &$attachments) {
'drupal:content-translation-add',
'drupal:content-translation-edit',
'drupal:content-translation-delete',
'shortlink'
'shortlink',
'canonical'
];
// Unset loop.
foreach ($attachments['#attached']['html_head_link'] as $key => $value) {
Expand Down

0 comments on commit 4654021

Please sign in to comment.