Open schnere opened 2 years ago
Hi @schnere. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, review the Magento Contributor Assistant documentation.
Add a comment to assign the issue: @magento I am working on this
To learn more about issue processing workflow, refer to the Code Contributions.
Join Magento Community Engineering Slack and ask your questions in #github channel.
:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
:clock10: You can find the schedule on the Magento Community Calendar page.
:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Hi @schnere , Thank you for reporting and collaboration. Verified the issue on Magento 2.4-develop branch and is reproducible but however, this seems to be an expected behavior but not a bug. As per Magento docs1 and docs2, each meta keywords tag should be unique. No URLs should have the same meta keywords value. Any phrase that you want to include in every meta description, you can type the value directly into the appropriate field. Kindly provide reference documents / proofs that supports duplicating the same keyword for meta data to consider this as a valid bug. Thank you.
Hi @engcom-November ,
thanks for your reply.
So the expected behavior if i use for example {{manufacturer}} {{name}} - {{manufacturer}} eCommerce
would be the following output: Adobe Magento - {{manufacturer}} eCommerce
?
Why would someone use a variable twice not expecting it to get replaced twice?
In my opinion there are use cases to use a variable in meta tags more than once, for example as meta description:
{{manufacturer}} {{name}} - Buy {{manufacturer}} products in our online store!
Furthermore I think that, if this might not be a use case for anyone, it would not be a problem to replace the variable more than once. So the fix is simple and will not cause problems for anyone, but would be a solution for some?
Hi @schnere , Thanks for your reply. Since its not clear in Magento official docs regarding the usage of placeholders for meta data we are considering this as a feature request. Thank you.
Preconditions and environment
Steps to reproduce
bin/magento config:set catalog/fields_masks/meta_keyword '{{name}}, order {{name}}'
or set manuallyExpected result
The meta keywords should be set to
NEW PRODUCT, order NEW PRODUCT
Actual result
The meta keywords are set to
NEW PRODUCT, order {{name}}
. So the second occurrence is not replaced as expected.Additional information
I think the substitution is done here? https://github.com/magento/magento2/blob/1a7f152da7dca587e01e69012847e12cd86b75e3/app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/edit.phtml#L198
So the solution would be to use
replaceAll
instead ofreplace
:Release note
No response
Triage and priority