Add extra validation for a shortcut

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.

2 thoughts on “Add extra validation for a shortcut

  1. Have you reported this as a bug?

    Ths bug existed for a long time in CMS 6 and I made a fix for it then.

    Kinda sucks that it has come back.

    But nice fix!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s