Link folders from private library subsite to public main site

Charlie Martharper 125 Reputation points
2025-11-05T11:23:59.8633333+00:00

So, I have a doubt about linking some private library folders in public library folders. I am working on an on premise SharePoint site.

I have a main site with a library wich is public, and subsites wich libraries are private. Some of the libraries in the subsite must go in the public too. The thing is when creating it as a link, it doesn't appear the folder icon + it appears ".url" in the end. Could it be possible to be a normal folder that redirects to the private folder?

Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jack-Bu 5,490 Reputation points Microsoft External Staff Moderator
    2025-11-05T12:23:22.0333333+00:00

    Hello Martin Vea, Carles

    Thank you for reaching out to Microsoft Q&A regarding your query your on-premises SharePoint environment. In SharePoint on-premises, the default "New > Link" option in a document library creates a .url item, which appends the extension to the name and uses a generic link icon instead of a folder one. This matches what you're describing.

    To make it appear and behave more like a normal folder, use the "Link to a Document" content type instead. This creates a special item that SharePoint treats as a redirect, and if the URL points to a folder, it will display with the standard yellow folder icon in library views. Here how to set it up:

    1. Navigate to your public document library on the main site.
    2. Click the gear icon (Settings) > Library settings.
    3. Under General Settings, click Advanced settings.
    4. Set "Allow management of content types" to Yes, then click OK.
    5. Back in Library settings, scroll to the Content Types section.
    6. Click "Add from existing site content types."
    7. Select "Link to a Document" from the list (it might be under Document Content Types), add it, and click OK.
    8. Return to the library view.
    9. Click New > Link to a Document (it should now appear in the dropdown).
    10. In the form:
      • Enter a Name (this will be the display name, e.g., "Private Folder Link" – no extension needed or added).
      • Paste the full URL to the target private folder in the subsite library (get this by navigating to the private folder, copying the URL from the browser, or using the "Copy link" option if available).
    11. Click OK/Save.

    Now, the link should show up in your public library with a standard folder icon. Clicking it will take you right to the private folder, as long as the person has the right permissions to access the subsite.

    This should work fine in versions like SharePoint 2016 or 2019. If you're on something older, like 2013, or if the icon or extension still isn't right, just let me know your exact version. I'm happy to assist you further.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".      

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.