Geta / geta-notfoundhandler

The popular NotFound handler for ASP.NET Core and Optimizely, enabling better control over your 404 page in addition to allowing redirects for old URLs that no longer works.
Apache License 2.0
20 stars 16 forks source link

Newly added re-directs are not re-directing. #65

Open Damiano-S opened 1 year ago

Damiano-S commented 1 year ago

Hi, We have been using the notFoundHandler in Optimizely for a while now to create re-directs with no issue. Recently, the re-directs that we are adding are not actually re-directing.

I have raised a ticket with Optimizely support who have suggested I contact the contributors of this package directly. Any advice on how I could debug this? or is there any documentation that I could use related to this issue?

Re-directs that were added in the past are still working. However, if we try to add new re-directs, they do not actually re-direct when testing.

Old working re-direct: https://www.jotun.com/no/no/b2c/how-to/video/how-to-maintain-teak-details-on-boat.aspx > https://www.jotun.com/no-no/decorative/yachting/how-to/how-to-maintain-teak The above example re-directs from the old url (left of >) to the new url.

New broken re-direct: https://www.jotun.com/no-no/decorative/professional/architects-downloads > https://www.jotun.com/no-no/decorative/professional/farger/jotun-digital-colour-palette The above example will just direct the user the the old url (left of >)

Geta.NotFoundHandler.Optimiziely version = 5.01 Geta.NotFoundHandler.Optimiziely.Commerce version = 5.01

EPiServer.CMS Version 12.7.0 EPiServer.Commerce Version 14.4.0

Please let me know if you need any more information.

marisks commented 1 year ago

As I see it is not broken. It is just that your old page still exists. 404 handler redirect only 404 requests. If a page exists, it will work as before.

Damiano-S commented 1 year ago

Thank you! that makes sense marisks. I have just un-published the page and I can see we are getting a 500 error now on this page instead of re-directing, https://www.jotun.com/no-no/decorative/professional/architects-downloads

Could you clarify why that would be happening?

marisks commented 1 year ago

I do not have access to that page. What is a stack trace? Is it related to the NotFound handler?