Change Redirect Page Layout Delay

In the SharePoint publishing world, there is such a thing called a redirect Page layout. When you edit a publishing page, by clicking on Page Layout, and selecting Redirect:

blog1.png

By default, a redirect page in SharePoint will redirect the users to the specified pages in 5 seconds. There is a way to override this value, but it involves modifying the Page Layout itself. In order to do this, got to the root web’s settings page, and click on Master pages and page layouts. In there, find the RedicectPageLayout.aspx file and edit it. The value you are looking for is included in the following tag:‚Äč

<PublishingWebControls:RedirectControl SecondsBeforeRedirect=”5” runat=”server”/>

Simply modify its SecondsBeforeRedirect value to 0:

<PublishingWebControls:RedirectControl SecondsBeforeRedirect=”0” runat=”server”/>

This will automatically redirect users to the new location upon hitting the page. Please note however, that you will still see the redirect page for a split second before getting redirected.