How To Redirect A SharePoint Page To Another Page

Have you ever wondered how to redirect a SharePoint page to another page? In this guide, we will walk you through the process step-by-step, making it easy for you to simplify your website navigation.

To redirect a SharePoint page to another page, you can use the “News link” feature in SharePoint Online. First, create a news link in your SharePoint site with the URL of the page you want to redirect to. Then, set the redirect page as the home page of your site. This will automatically redirect users to the new site when they visit the home page.

Note that this method only redirects users to the new site when they visit the home page and not any particular list or library.

Alternatively, you can use the SharePoint Online Management Shell to remove redirects from SharePoint sites. This can be useful if you no longer want certain pages to redirect or if you need to make updates to your site’s navigation.

It is also possible to add custom code to enable redirect functionality in SharePoint Online modern pages. This can be done by using the custom modern script editor web part or creating a web part with SPFx.

By following these methods, you can easily redirect SharePoint pages and enhance the usability of your site.

Using the “News link” feature in SharePoint Online

One way to redirect a SharePoint page to another page is by using the “News link” feature in SharePoint Online. By creating a news link and setting it as the home page, users will be automatically redirected to the new page when they visit the site.

To create a news link, follow these steps:

  1. Go to your SharePoint site and navigate to the page you want to redirect from.
  2. Click on the gear icon in the top-right corner and select “Edit” to enter edit mode for the page.
  3. On the page, click on the “+ Add a new section” button to add a new section if needed.
  4. Within the section, click on the “+ Add a new web part” button to add a new web part.
  5. From the web parts menu, search for and select the “News” web part.
  6. In the news web part settings, click on the “Add” button to create a news link.
  7. Enter the URL of the page you want to redirect to in the “Link” field.
  8. Click “Apply” to save the news link.

Once you have created the news link, you can set it as the home page of your site by following these steps:

  1. Go to your SharePoint site and click on the gear icon in the top-right corner.
  2. Select “Site information” from the dropdown menu.
  3. Under the “Web Address” section, click on the “Change” button next to “Welcome Page”.
  4. Choose the news link you created from the list of pages.
  5. Click “Save” to set the news link as the home page.

By following these steps, you can easily redirect a SharePoint page to another page using the “News link” feature in SharePoint Online. This method ensures that users are automatically redirected to the new page when they visit the site’s home page.

Removing redirects with the SharePoint Online Management Shell

If you need to remove redirects from SharePoint sites, you can do so using the SharePoint Online Management Shell. This powerful tool allows you to efficiently manage and modify SharePoint settings, including removing redirects.

To get started, open the SharePoint Online Management Shell and connect to your SharePoint site using the Connect-SPOService cmdlet. Make sure you have the necessary permissions to modify site settings.

Once connected, you can use the Set-SPOHomePage cmdlet to remove the redirect. By setting the home page URL to a blank value (“null”), you effectively remove the redirect and users will be directed to the default site page.

Here’s an example of how to remove a redirect using the SharePoint Online Management Shell:

Set-SPOHomePage -Identity <siteURL> -RootFolderRelativeUrl <siteRelativeURL> -HomePageType None

Summary:

Removing redirects from SharePoint sites can be done using the SharePoint Online Management Shell. This powerful tool allows you to efficiently manage and modify SharePoint settings. By using the Set-SPOHomePage cmdlet and setting the home page URL to a blank value, you can effectively remove the redirect and direct users to the default site page.

Table 1 summarizes the steps to remove redirects using the SharePoint Online Management Shell:

Step Action
1 Open the SharePoint Online Management Shell.
2 Connect to your SharePoint site using the Connect-SPOService cmdlet.
3 Use the Set-SPOHomePage cmdlet to remove the redirect by setting the home page URL to a blank value.
4 Verify that the redirect has been removed by visiting the site’s home page.

Now you have the knowledge and tools to effectively remove redirects from your SharePoint sites using the SharePoint Online Management Shell. Take advantage of this powerful tool to streamline your site management workflow and ensure a seamless user experience.

Enabling Redirect Functionality on SharePoint Online Modern Pages

If you want to have redirect functionality on SharePoint Online modern pages, you can achieve it by adding custom code. There are a few options available to enable redirection on your modern pages. One option is to use the custom modern script editor web part. This web part allows you to insert your own code directly into a modern page, giving you the flexibility to create custom redirect functionality.

Another option is to create a web part with SPFx (SharePoint Framework). SPFx is a development model for extending SharePoint and allows you to build custom web parts using modern web technologies like JavaScript, TypeScript, and React. By creating a web part with SPFx, you can add your own code for redirection on SharePoint Online modern pages.

By using either the custom modern script editor web part or creating a web part with SPFx, you can customize the redirection behavior according to your specific requirements. These options provide a way to enhance the user experience on SharePoint Online modern pages by redirecting users to the desired destinations.

Meet the Author

Abdul Rahim has been working in Information Technology for over two decades. Learn how Abdul got his start as a Tech Blogger , and why he decided to start this Software blog. If you want to send Abdul a quick message, then visit his contact page here.