Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

vasilii-b
Copy link

Description (*)

Fixes issue #5023, where you're not able to add a MS tile image with image url from theme.

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

Fixed Issues (if relevant)

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

Manual testing scenarios (*)

Please check the issue description.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @vasilii-b. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@magento-engcom-team magento-engcom-team added Component: View Release Line: 2.3 Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner labels Mar 16, 2019
@ghost ghost assigned larsroettig Mar 16, 2019
public function getAdditionalMetaAssets()
{
return $this->additionalMetaAssets;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty Line is missing there .

@@ -369,6 +369,20 @@ public function testAddRss()
$this->assertInstanceOf(\Magento\Framework\View\Page\Config::class, $this->model->addRss($title, $href));
}

public function testGetMetaAssetUrlWithUrlInContent()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function comment is missing there

$this->assetRepo->expects($this->never())->method('getUrl');
$this->assertEquals('http://test.com/image.png', $this->model->getMetaAssetUrl('http://test.com/image.png'));
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function comment is missing there

…lt_head_blocks.xml

# Added codestyle fixes
@vasilii-b vasilii-b requested a review from larsroettig March 17, 2019 16:53
*/
public function getMetaAssetUrl($content)
{
$parsed = parse_url($content);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi can you add the second parameter, please

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @larsroettig, I've seen you marked as resolved the previous comment and thought its not needed.
Will add it. Thank you!

…lt_head_blocks.xml

# Changed the way how asset url is checked for URL scheme to a more consistent approach
@vasilii-b vasilii-b requested a review from larsroettig March 20, 2019 07:40
@magento-engcom-team
Copy link
Contributor

Hi @larsroettig, thank you for the review.
ENGCOM-4544 has been created to process this Pull Request

@VasylShvorak
Copy link
Contributor

✔️ QA passed

@ghost ghost unassigned p-bystritsky and VasylShvorak Jul 10, 2019
@vasilii-b
Copy link
Author

Hi @sivaschenko, @larsroettig,
Could you guys please check if added changes are good from "Backward compatible" perspective or any other issues are found?
Thank you!

…ia default_head_blocks.xml

# Introduced a new class that provides URL for MS tile image during page config metadata generation
@vasilii-b vasilii-b force-pushed the 2.3-layout-head-ms-tile-image-meta-tag branch from 1c20130 to 8892b0b Compare July 10, 2019 12:29
@magento-engcom-team
Copy link
Contributor

Hi @sidolov, thank you for the review.
ENGCOM-5635 has been created to process this Pull Request
✳️ @sidolov, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@engcom-Delta
Copy link
Contributor

✔️ QA passed

@engcom-Foxtrot
Copy link
Contributor

@magento run all tests

@m2-assistant
Copy link

m2-assistant bot commented Aug 26, 2019

Hi @vasilii-b, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.4 milestone Aug 26, 2019
@sidolov sidolov added the Auto-Tests: Covered All changes in Pull Request is covered by auto-tests label Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Award: bug fix Component: View Event: lvivcd19 Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants