Hi All,
I added pdf to my site , when i open that pdf the name of the pdf different and url is different.
Please help me with same name download pdf when i open and URL
Hi All,
I added pdf to my site , when i open that pdf the name of the pdf different and url is different.
Please help me with same name download pdf when i open and URL
It’s not currently possible to customise the document URLs, although there is an open feature request:
Alternatively, I created this function a little while ago (I think it was for PDFs), which might help. (It converts a Wix Document URL into a normal URL using your site domain. Wix Document URL normally starts with wix:document://
)
function convertWixDocumentUrl(documentURL) {
// Extract the filename and path from the documentURL
const urlParts = documentURL.split('/');
const filename = documentURL.pop();
const path = documentURL.join('/');
// Construct the modified URL
const modifiedUrl = https://www.example.com/_files/${path}/${filename};
return modifiedUrl;
}
You’ll need to change the domain in the example and then add to your site where you need it