Developer forum

Forum » Feature requests » Automatic update of Redirects if a Product, Group or Page is changed

Automatic update of Redirects if a Product, Group or Page is changed

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I know this has been requested before and I remember that the old way of handling URLs was a pretty big issue in implementing this change but I am hoping that the new changes in how URLs are handled might bring this request back in focus.

On short, it would be very helpful to have an automatic creation of a redirect for friendly URLs if some changes would affect the previously generated links. This would avoid a lot of useless 404 errors.

I understand it is not a simple request, I just want to bring it back in attention.

Thank you,

Adrian


Replies

 
Melissa Borgmann
Melissa Borgmann
Reply

Bumping this one again in 2025 :) Most integrated B2B projects involve multiple customer teams modifying product data in the ERP without the ecommerce team being made aware of changes (e.g., a product name changing slightly, product group(s) assignments shifting). This leads to often large volumes of 404 pages accumulating over time since the product URL is generated dynamically in DynamicWeb and many customers utilize SEF URLs.

It would be extremely beneficial to be able to configure auto-generated redirects as a standard platform feature. 

From Nuno A.: 
"I see a case where in some situations, changing URLs (i.e. new page name, new product name, changing URL settings,...) could automatically add the record to URL paths (the Redirect UIs). And then a scheduled task could clean up old records - i.e. no triggered for more than 1 year)."

Some related topics: 

  • https://doc.dynamicweb.com/forum/pim/pim/exporting-product-urls-for-redirects-to-new-categories-in-dynamicweb 
  • https://doc.dynamicweb.com/forum/feature-requests/feature-requests/advanced-url-redirects
  • https://doc.dynamicweb.com/forum/feature-requests/feature-requests/redirects-filling-in-the-gaps

Thank you for the consideration!

- Melissa B.

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

I think from an integration perspective, this will never work well. The integrations do bulk updates in SQL directly and managing change across potentially large numbers of records would be a disaster for performance.

What we typically do is map the product name twice:

ERP           DynamicWeb      Insert/Update
Name          ErpName         Both
Name          ProductName     Insert only
Then whenever the name in the ERP changes, the costom field ErpName is updated, but Name isn't. PIM users can then change the product name if and when needed (for SEF links) and create redirects where appropriate. That last part might be something that could be done automatically (ie create a redirect on a name change in PIM).
 
Imar
 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi

I understand the request - but it is in many way a problematic feature to implement.

Dynamicweb supports Hight Volume Urls - which will add an id or SKU to the URL. See https://doc.dynamicweb.dev/manual/dynamicweb10/settings/system/webhttp/customized-urls.html?q=high%20volume#ecommerce---high-volume-product-urls

Using the HVUs will have many benefits - performance for once, and the name of the product will then not matter as it is the identifier in the URL that is used to resolve the product. Then it will only be if renaming of groups changing the url. 

To handle renaming of groups, your integration from ERP could go into a ERP channel using the grouping from ERP and then a Commerce channel where products are published and the group structure handled by the commerce team.

Another approach would be similar to what Imar suggests - the product has a field for URL name - and you could add the product name to that field when the product is created and then avoid updates of that field. Then renaming will only happen when a PIM editor think it is needed.

But I would strongly suggest looking at the HVUs.