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 Sitefinity 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.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?