Reputation: 1802
Sharepoint Online modern site Redirect
Is it feasible to redirect sharepoint page to another site ?
From https://xyz.sharepoint.com/ccg/sitepages/abc.aspx
Below mentioned are my findings and efforts.
It can be done in sharePoint classic by simply writing javascript code. But in modern site we can't write code there is no web part that support code.
We can redirect the page using "news link" but it only works for home page. It means I can only redirect the sharePoint home page, not any other sharePoint page. When I am trying to do so there is a lag in the redirection. For reference: https://www.sharepointdiary.com/2020/02/sharepoint-online-how-to-create-redirect-to-another-site.ht
Upvotes: 1
Views: 4247
Reputation: 271
There is a thread that lists the steps to enable the custom modern script editor web part on SharePoint Online modern page, you can refer to it to install the custom web part, then add your code to the web part.
Upvotes: 0
Reputation: 1
To add a script or your own code, you could write a webpart with help of SPFx. There is a tutorial by Microsoft: https://learn.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part
Otherwise you could simply put a text field with a link on your site, which redirects to your other site.
Upvotes: 0