Skip to content

It is not possible to add MS tile image meta via default_head_blocks.xml #5023

Closed
@chicgeek

Description

@chicgeek

It is currently not possible to add a msapplication-TileImage meta value to the head as the image path is not processed. This meta uses the content attribute instead of src or href and is used to specify the path for the tile images for Windows devices. Other similar icon paths that use src have the paths resolved correctly.

This inability to support this meta tag has been evident since before the GA release and is still an issue in 2.0.6.

Preconditions

Magento 2.0.6

Steps to reproduce

Add the following to default_head_blocks.xml. I have added other entries to this example to this show how other link / meta tags are supported, though the last line (msapplication-TileImage) is all that is required to see the broken behaviour.

<link rel="icon" type="image/png" src="images/favicons/favicon-16x16.png" sizes="16x16"/>
<link rel="manifest" src="images/favicons/default/manifest.json"/>
<meta name="theme-color" content="#00989e"/>
<meta name="msapplication-TileColor" content="#00989e"/>
<meta name="msapplication-TileImage" content="images/favicons/default/mstile-144x144.png"/>

Expected result

The content attribute for msapplication-TileImage should resolve to a localised theme path. For example:

<meta name="msapplication-TileImage" content="http://example.com/static/frontend/vendor/theme/en_GB/images/favicons/default/mstile-144x144.png">

Actual result

The content attribute for msapplication-TileImage does not resolve to a localised theme path.

<meta name="msapplication-TileImage" content="images/favicons/default/mstile-144x144.png">

Metadata

Metadata

Assignees

Labels

Fixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions