Insights

Add extra validation for a shortcut

Add extra validation for a shortcut

Add extra validation for a shortcut Add extra validation for a shortcut
Senior Developer
Valtech Netherlands
Jeroen Stemerdink

January 07, 2019

Happy New Year everyone! Mine started out well… suddenly, without a deployment or Azure issues, a website went completely unresponsive.  “502 – Web server received an invalid response while acting as a gateway or proxy server”

Looking at the change log there was a content change just before the site went down. The change made was that a shortcut was set on page_1 to page_2,  while page_2 had a shortcut to page_1. So an endless loop was created.

Episerver validates if the shortcut is set to “self”, but not for this scenario. So I created a validator that checks if the shortcut references a page that is a shortcut itself. You can find it here

 

Original Article was posted on EpiServer Development: Add Extra Validation for Shortcut

 

Meet The Challenges Of Today's Digital Economy

Ready to take that first step and rise to your digital potential? Contact Valtech today.
Talk to us
Meet The Challenges Of Today's Digital Economy