Forum Discussion

SamiaHabiba's avatar
SamiaHabiba
Copper Contributor
Jan 18, 2022

How to run Javascript file in modern Sharepoint site?

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

  • RobElliott's avatar
    RobElliott
    Silver Contributor

    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)