We have a module to generate and store report in PDF format.
The url to get document for example like this:
https://domain.com/Document/GetDocument?documentId=00000000-0000-0000-0000-000000000000
This url will return a document with name: Document_UserName_Date
.
However, since there are browser can view PDF file like Chrome, the document will be view right in a tab of browser with above url.
So, when users try to save that document in their computers, the default file name(which get from url) is: https___domain.com.pdf
instead of Document_UserName_Date.pdf
as we expected.
So I'm thinking, if I can just changed the url into:
https://domain.com/Document/Document_UserName_Date.pdf
my problem will be solved.