How can we redirect a SharePoint page to a different Site Collection
Hi @WolfeThomas-9499 ,
You can inject the following JS code to a SharePoint Online page. You can copy it from the attached RedrictPageJS.txt.
Once you save the page and refresh it will redirect. See my demonstration.
You can use the modern script editor web part to inject the JS code: https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor. Take a reference to this article on how to deploy the web part to your SharePoint Online site: SharePoint | Online | Best Practice | install Modern Script Editor Web Part for SharePoint Online Modern Site.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
9 people are following this question.