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

Commit 4654021

Browse files
authored
Add rel= canonical to remove list
1 parent 20001e3 commit 4654021

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unset_html_head_link.module

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ function _remove_header_links(array &$attachments) {
4141
'drupal:content-translation-add',
4242
'drupal:content-translation-edit',
4343
'drupal:content-translation-delete',
44-
'shortlink'
44+
'shortlink',
45+
'canonical'
4546
];
4647
// Unset loop.
4748
foreach ($attachments['#attached']['html_head_link'] as $key => $value) {

0 commit comments

Comments
 (0)