-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
It is not possible to add MS tile image meta via default_head_blocks.xml #21798
Conversation
…lt_head_blocks.xml
Hi @vasilii-b. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
public function getAdditionalMetaAssets() | ||
{ | ||
return $this->additionalMetaAssets; | ||
} |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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')); | ||
} | ||
|
There was a problem hiding this comment.
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
*/ | ||
public function getMetaAssetUrl($content) | ||
{ | ||
$parsed = parse_url($content); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Hi @larsroettig, thank you for the review. |
✔️ QA passed |
Hi @sivaschenko, @larsroettig, |
…ia default_head_blocks.xml # Introduced a new class that provides URL for MS tile image during page config metadata generation
1c20130
to
8892b0b
Compare
Hi @sidolov, thank you for the review.
|
✔️ QA passed |
@magento run all tests |
ffd257c
to
a917ee7
Compare
Hi @vasilii-b, thank you for your contribution! |
Description (*)
Fixes issue #5023, where you're not able to add a MS tile image with image url from theme.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Please check the issue description.
Contribution checklist (*)