akeneo / magento2-connector-community

Akeneo Connector for Magento 2
Open Software License 3.0
81 stars 89 forks source link

While url_key field updated but 302 redirection not happen #471

Open vignesvaran opened 2 years ago

vignesvaran commented 2 years ago

Environment and configuration

  1. Akeneo CE 3.0.15
  2. Magento CE 2.3.3
  3. Akeneo Connector 100.4.0

Steps to reproduce

  1. Create a product with an url_key and sync it in Magento, the same url_key used in the frontend to view the product.
  2. Update the url_key in Akeneo and sync that into Magento (URL rewrite option also enabled in Akeneo configuration)
  3. After the sync is done, if I hit the old product URL it's not redirecting to the new URL.
  4. But in Magento if we change url_key then the old URL redirected automatically to the new one.

Expected result

  1. Old URL redirected to new URL.

Actual result

  1. Old url redirected to 404 page.
cengizcoskun commented 2 years ago

+1

ismailcaakir commented 2 years ago

I have the same error I think it's a bug 🪲.

ismailcaakir commented 2 years ago

Hey Brothers, @cengizcoskun @vignesvaran

I came up with a solution. You can review the screenshot.

PR: https://github.com/akeneo/magento2-connector-community/pull/482