Magento2: URL key/SEO friendly URL not used for products when in single-store mode

Created on 23 Aug 2019  路  23Comments  路  Source: magento/magento2

Preconditions (*)

  1. Magento v2.3.2
  2. Single-store Mode (Stores > Configuration > General > Single-Store Mode)

Steps to reproduce (*)

  1. Add product to site using /V1/products (catalogProductRepositoryV1) via swagger
  2. Example JSON:
    { "product": { "sku": "TestApi", "name": " API Test", "attribute_set_id": 4, "price": 0.75, "status": 1, "visibility": 4, "type_id": "simple", "created_at": "2019-07-23 16:25:27", "updated_at": "2019-07-23 16:25:27", "extension_attributes": { "website_ids": [ 1 ], "stock_item": { "qty": 99999, "is_in_stock": true, "use_config_min_qty": true, "min_qty": 0, "use_config_min_sale_qty": 1, "min_sale_qty": 1, "use_config_max_sale_qty": true, "max_sale_qty": 10000, "use_config_backorders": false, "backorders": 0, "use_config_notify_stock_qty": true, "notify_stock_qty": 1, "use_config_qty_increments": true, "qty_increments": 0, "use_config_enable_qty_inc": true, "enable_qty_increments": false, "use_config_manage_stock": true, "manage_stock": true } } } }
  3. Search for product on frontend of site
  4. Click product and review URL used

Expected result (*)

  1. URL key is generated for product based on product name.
    In admin:
    image

On Frontend:
image

Actual result (*)

  1. URL key is correctly generated and appears in admin
    image
  1. On frontend the URL key is not used and instead the fallback is to use entity_id
    image
Catalog Store UrlRewrite Cannot Reproduce Confirmed Format is valid Ready for Work

All 23 comments

Hi @itwebdev2. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • [ ] Summary of the issue
  • [ ] Information on your environment
  • [ ] Steps to reproduce
  • [ ] Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.3-develop instance - upcoming 2.3.x release

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

@itwebdev2 do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • [ ] yes
  • [ ] no

Confirmed on 2.3-develop instance

Hi @engcom-Bravo. 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).
    DetailsIf 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.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.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 @engcom-Bravo
This doesn't look to be specifically caused by the API. Adding an item in the Magento admin appears to have the same effect.

:white_check_mark: Confirmed by @engcom-Bravo
Thank you for verifying the issue. Based on the provided information internal tickets MC-19667 were created

Issue Available: @engcom-Bravo, _You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself._

Hi @maheshWebkul721. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • [ ] 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
  • [ ] 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

  • [ ] 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


@magento give me 2.3-develop instance

Hi @maheshWebkul721. Thank you for your request. I'm working on Magento 2.3-develop instance for you

Hi @maheshWebkul721, here is your Magento instance.
Admin access: https://i-24259-2-3-develop.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.

@itwebdev2 @engcom-Bravo , i have followed the same steps, i am not able to reproduce this issue:

  1. https://prnt.sc/p2zb2m
  2. http://i.prntscr.com/Ftts5I6_R8_pQZlp4o9DtA.png
  3. http://i.prntscr.com/NFLBIhEVSc2LYcEH5ekh5g.png

Please check again, and reopen this issue again.
Thanks

@maheshWebkul721 if You want to reproduce the issue take a fresh vanilla install of Magento and just follow steps to reproduce. You may add the product via admin. Do not create categories at all. Here is what I've got for an instance just has been cloned from GitHub 2.3-develop version and installed.
wrongurl

@engcom-Bravo Thank you for verifying the issue.

Unfortunately, not enough information was provided to acknowledge ticket. Please consider adding the following:

  • [ ] Add "Reproduced on " label(s) to this ticket based on verification result

Once all required information is added, please add label "Issue: Confirmed" again.
Thanks!

:white_check_mark: Confirmed by @engcom-Bravo
Thank you for verifying the issue. Based on the provided information internal tickets MC-20085 were created

Issue Available: @engcom-Bravo, _You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself._

Also experiencing this issue.

Hi @MaxSouza. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • [ ] 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
  • [ ] 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

  • [ ] 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


@magento give me 2.3-develop instance

Hi @MaxSouza. Thank you for your request. I'm working on Magento 2.3-develop instance for you

Hi @MaxSouza, here is your Magento instance.
Admin access: https://i-24259-2-3-develop.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.

Hi @oscarsanch. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • [ ] 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
  • [ ] 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

  • [ ] 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


Hi @itwebdev2, @oscarsanch.

Thank you for your report and collaboration!

The related internal Jira ticket MC-20085 was closed as non-reproducible in 2.3-develop.
It means that Magento team either unable to reproduce this issue using provided _Steps to Reproduce_ from the _Description section_ on clean Magento instance or the issue has been already fixed in the scope of other tasks.

But if you still run into this problem please update or provide additional information/steps/preconditions in the _Description section_ and reopen this issue.

@magento give me 2.3-develop instance

Hi @itwebdev2. Thank you for your request. I'm working on Magento 2.3-develop instance for you

Hi @itwebdev2, here is your Magento instance.
Admin access: https://i-24259-2-3-develop.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.

Was this page helpful?
0 / 5 - 0 ratings