Portal Redirect
Portal Redirect is no longer needed for new deployments. Opening a SharePoint URL directly already starts the appropriate Microsoft sign-in process when required and returns the user to SharePoint.
The GitHub repository remains available as historical and technical reference. Do not use its tenant-specific Microsoft sign-in URL as a recommended authentication pattern for a new portal.
The repository contains one static index.html file. It demonstrates a JavaScript redirect with a no-JavaScript fallback.
Useful As A Reference
- Understanding how an older static portal landing page was constructed.
- Reviewing JavaScript,
<noscript>, and visible-link fallbacks together. - Identifying old deployments that should be simplified or retired.
- Preserving the history of the original portal migration solution.
Do Not Use It For
- A new intranet address when users can open the SharePoint URL directly.
- A current production sign-in or authentication design.
- Dynamic redirects based on untrusted query-string input.
- Replacing Conditional Access, Home Realm Discovery, or an identity-provider configuration.
- Forcing users to sign in again when SharePoint can manage their existing session.
Replace An Existing Deployment
- Confirm who owns the old portal hostname and which SharePoint URL users need.
- Prefer a centrally managed HTTP redirect from the old hostname to the fixed SharePoint URL.
- If only static hosting is available, replace the Microsoft sign-in construction with a fixed direct SharePoint URL in the JavaScript,
<noscript>fallback, and visible link. - Test signed-in and signed-out sessions, guest accounts, Conditional Access, and the organization's supported browsers.
- Retire the landing page when bookmarks, navigation, and other dependencies have moved to the SharePoint URL.
Keep the destination fixed. Do not turn it into an open user-supplied parameter, because an open redirect makes a trusted hostname useful in phishing flows.
The repository's wa, wreply, and whr parameters document the older implementation. Removing only login.srf does not turn that construction into a current Microsoft identity-platform authorization flow.
Ownership And Support
Assign the portal hostname and TLS certificate to a web platform owner. Assign the target URL to the SharePoint owner. The owners should agree when the legacy page can be replaced and removed.
A redirect page can remain online long after its original migration. Give it a removal date so an informational example does not quietly remain production infrastructure.