SharePoint 2019: Cross Site Publishing Download Option

Matthew Deely 1 Reputation point
2021-10-26T15:21:31.08+00:00

Hello,

I'm currently in the process of setting up a SharePoint 2019 web app with cross site publishing. Currently I have one publishing site and three authoring sites.

I am currently working my display templates and trying to get a download document option working.

I'm attempting to use the following URL to achieve this:

https://publishing_site.company.com/_layouts/download.aspx?SourceURL=https://authoring_site1.company.com/Document_Library/test.pdf

But receive an error "Sorry, something went wrong. An unexpected error occurred.

If I set the download link to be "https://authoring_site1.company.com/Document_Library/test.pdf" I am prompted to log into the other site collection and then the file downloads.

The only work around I have found so far is to enable anonymous access on the Document Library on the authoring site, but this probably isn't a great option with information security in mind.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,221 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,668 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,573 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,799 questions
{count} votes

1 answer

Sort by: Most helpful
  1. sadomovalex 3,626 Reputation points
    2021-10-27T15:05:25.047+00:00

    if links to these documents appear on public site (i.e. site which is accessible by anonymous users) then probably anonymous users should also be able to see content of these documents? If so then there is no problem with enabling of Anonymous access to your authoring catalog doclib. Content creators should clearly understand that though.