Developer forum

Forum » Ecommerce - Standard features » Redirect to 404 on inactive products

Redirect to 404 on inactive products

Alexandru Aliu
Reply

Hey guys,

I have a strange issue on 9..14.11 I have configured the Ecommerce advanced settings to show only the active products and redirect the missing ones to a random page. For soem reason the redirect doesn't work - the product is not comming in the lists or in the search when it's inactive, but for some reason, you can still access it with the direct link . Any idea where should I look ?


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Alexandru

Looks correct and I cannot reproduce... Do you have a URL where we can take a look?

BR Nicolai

 
Alexandru Aliu
Reply

Hey Nicolai,

After some readups in the update logs I found out that this was some issue fixed in an newer version. Now I have upgraded to 9.18.0 and the Inactive product will throw a 404 as I want. I end up in an other issue though, also related to this functionality

This product , for example

https://kaffebrenneriet.stagingsite.dk/kaffe-i-loesvekt/zinule

has this Period setup in DW

And even if it's like this,as you can see you get to it if you go on the direct link. Is this something that I should fix myself or is it some bug in DW. If I have to fix it myself, I'm not sure exactly how I should do it. Any suggestions ?

I changed my queries so the product is not available in the lists or search results, but still, if the customer comes from Google it can access it

 

You must be logged in to post in the forum