An error occurred after an upgrade from Episerver CMS 5 to CMS 6. When publishing a page an error message was shown, urltoimage.jpg is not a valid value for imageproperty
Archive of posts with category 'EPiServer'
I recently ran into the same problem as Jamie Dixon when upgrading a episerver site from cms 5 to cms6. But the solution was a little different.
This code checks if a page in episerver is opened in edit mode. It uses HttpContext.Current.Request.UrlReferrer.LocalPath to look for the word admin.