I need to redirect users to custompage , when my SharePoint 2013 homepage is loaded for first time.
If user closes & reopens the browser (or) access the homepage in another browser , it should redirect to custompage. We can implement it using Javascript . Any advice would be helpful . Thanks.
Rajkiran SwainPosted Aug 16, 2017, 9:35 AM
A pure HTML alternative is the following
tag in your HTML:The
0is here the amount of seconds the page has to stay open before redirecting. In this case, it'll happen immediately as soon as you loads the page. In contrary to the proposed JS solution, this will work fine as well in browsers with JS disabled.However, if you've the ability to hook on server side code without trouble (i.e. response is not committed yet and so on), then I'd prefer that above the HTML/JS solution anyway.
Manpreet SinghPosted Aug 14, 2017, 10:54 PM
Manikandan MurugesanPosted Aug 11, 2017, 1:37 PM
If Public is a Document library (or a module you have added) then it's easy.
Using SharePoint Designer
Or in PowerShell use:
But if Publico is a subsite or even separate site collection then you need some more work:
Add a redirect.aspx like this to a document library in the root site:
Use the above method to set the redirect.aspx as WelcomePage for the root site