Customize the redirect validation warning page

You can customize the way the redirect validation warning page looks and the information it displays to users. The page is built using Razor syntax and allows frontend developers to easily modify it. Below you can find the default source code of the page:
Use the default redirect validation warning page source code provided above and apply your desired modifications.

Replace the default redirect validation warning page

To replace the default redirect validation warning page with your custom one, you need to perform the following:

  1. Create a new file in the ~/App_Data/WebSecurity/ folder of your Sitefinty CMS website – this is the folder where Sitefinity CMS looks for your custom redirect validation warning page
  2. Name the file ExternalRedirectWarning.sfhtml – this is the name that Sitefinity CMS expects

Sitefinity CMS will pick up you custom redirect validation warning page immediately once a file named ExternalRedirectWarning.sfhtml exists in the ~/App_Data/WebSecurity/ folder of your website. There is no need to build the project or restart your website.

Was this article helpful?