Problem/Motivation
The URL in the Link HTTP header which can be added by HtmlResponseAttachmentsProcessor::processHtmlHeadLink() is HTML-encoded, but should not be.
Steps to reproduce
- Add a URL with
&
or other HTML special character to the Link HTTP header e.g.$render['#attached']['html_head_link'][] = [['href' => '/foo?bar=&baz=false', 'rel' => 'alternate'], TRUE];
- The Link HTTP header should contain
</foo?bar=&baz=false>
but contains</foo?bar=&baz=false>
Proposed resolution
- Do not HTML-encode the contents of the HTTP header.
- Fix test to not expect an HTML-encoded HTTP header.