Forum Discussion
SharePoint HTML Page Links Not Working? Heres How to Fix Them!
Suppose you create or upload an HTML page to the SharePoint Site Pages
However, you may notice that some links work while others don't. When this happens, you might see the following error message:
"This link can't be opened because your organization doesn't allow access to this site. "
Microsoft supports only the following types of links when rendering HTML pages in SharePoint.
๐Links within the same site
๐Links within the same tenant
๐Links that support navigation between pages
And the follow type are not supported by Default
๐Links to another Microsoft 365 tenant
๐Links outside of SharePoint
So How can we fix it?
If a link doesn't open on your page, the destination may not be from an approved domain. This is expected behavior and is part of how SharePoint securely renders HTML pages.
To allow the link, a site administrator must add the domain to the site's allow list.
Go to Site Setting Gear Icon and Choose Site Information
Choose "View all Site Settings"
Select HTML Field Security.
Add the relevant domain to the allow list - Remove Prefix like Https://
Save your changes and refresh the page.
Once the domain is allowed, the link should open correctly.
๐บIn this video, I'll explain why hyperlinks can behave differently when HTML files are hosted in SharePoint and show you how to troubleshoot the most common issues. https://lnkd.in/dm86ir6i
For offical article check this is https://support.microsoft.com/en-us/sharepoint/create-edit-publish-html-pages
๐ฌ Have you experienced a SharePoint link issue?
Let me know in the comments!
๐ If you found this helpful, please Like, Subscribe, and turn on notifications for more SharePoint, Microsoft 365, and Copilot tips.