Developer forum

Forum » Ecommerce - Standard features » Error page product detail wrong group

Error page product detail wrong group

John Broers
Reply

Hi,

We've encountered an unusual error page when attempting to access a product detail page with a group that doesn't exist within the selected website shop.

Example:
Consider the following URL structure used for our product detail: /Default.aspx?ID=1542&GroupID=GROUP156&ProductID=PROD120

Here, GROUP156 represents a group ID from a PIM warehouse. The current shop selected for this website is SHOP1.

The parsed URL by DynamicWeb is as followed: /webshop/snake-main?GroupID=GROUP156

It seems that while the ProductID is appropriately parsed, the GroupID parameter remains in the URL. But the users end up on an error page. (see attachment)

While setting the correct default group can resolve this issue, we would like to show a more user-friendly error page like the default 404 page. An even better solution would be even better if it would ignore the groupId paremeter and show the product detail like it does when accessing /webshop/snake-main URL. Is something like this possible?

We're currently using DynamicWeb version 9.16.6.

 

BR,

John Broers

URL-GroupID-Problem.png

Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi John

There is a setting for returning 404 for products and groups when they are shown out of context:

https://doc.dynamicweb.com/documentation-9/platform/platform-tools/customized-urls#3514

The response you are seeing seems like it is a gzipped response that is send without the correct response header. This could stem from a wrong setup of web.config - or maybe some response or clear headers in a template...?

Votes for this answer: 1

 

You must be logged in to post in the forum