How to run Javascript file in modern Sharepoint site?

Regular Visitor

We are migrating from Classic SharePoint to Modern SharePoint. But we have a redirect JS script for some redirection in out Master page of Classic. How can we do that in Modern SharePoint?

1 Reply

@SamiaHabiba there's no out-of-the-box way to redirect a page in a modern SharePoint site.  What we do is to add a text box to the old page with an explanation and a link to the new page.

 

Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)