Consider a scenario where you share a particular SharePoint link with your colleagues and other co-workers. Users have a tendency to bookmark frequently accessed URLs.
For some reason, this content on this page is moved and there is a new site/page which hosts the content now. If users access this page, they will get undesired results.
It will be a good idea to redirect the users to the new page (site collection, subsite, page) when the current bookmarked URL is accessed.
Simple HTML SolutionThe simplest way to achieve this by using a standard HTML + JavaScript approach and adding a script for redirection.
Follow these steps -- Edit the SharePoint page.
- Add a Content Editor web part.
- Add below code in the content editor web part. Optionally you can also display a message if needed.
- This page has shifted, you are being redirect to http://code2care.org
- Save web part changes.
- Save and publish the page.
- Test the page for redirection.
<script>
window.location.href = "http://code2care.org";
</script>
By doing so, the page will instantly navigate and redirect the user to the specified URL.
More Posts related to SharePoint,
- SharePoint An unexpected error has occurred - Correlation ID and Merge-SPlogfile
- SharePoint list excel import error - Title is a required filed and can't be empty
- Send Email with attachment using SharePoint PowerShell, SMTP server
- Sharepoint errors were found when compiling the workflow
- How to update SharePoint List Item programmatically
- Merge-SPlogfile PowerShell - SharePoint Correlation ID error
- Get-ADUser PowerShell - Get AD user details using email address
- Restore deleted Office 365 SharePoint group site
- [Solved] SharePoint Access Denied error editing Document Name
- How to migrate SharePoint Designer 2010 workflow to Power Automate FLOW (Microsoft Office 365)
More Posts:
- Android : Error in http connection java.net.SocketException: Permission denied - Android
- How to create Toast messages in Android - Android
- How to Search Something (string) in Android Studio Project like Eclipse - Android-Studio
- How to detect Browser and Operating System Name and Version using JavaScript - JavaScript
- Free Unlimited Calls from MTNL & BSNL Landlines from 1st May 2015 - HowTos
- Adding internet permission to Android Project - Android
- How to turn off Facebook autoplay videos on timeline - Facebook
- Android : How to make TextView Scrollable - Android
- Sharepoint Server 2016 installation Prerequisites with download links - SharePoint
- How to get current URL Location using Javascript HTML - JavaScript
- Android Toast position top - Android
- How to submit website to dmoz directory - HowTos
- SharePoint Server 2016 setup error - A system restart from a previous installation or update is pending. Restart your computer and run setup to continue. - SharePoint
- Java XML-RPC 3.1.x based web service example - Java
- Plug-in com.android.ide.eclipse.adt was unable to lead class Error - Android