- This topic has 7 replies, 2 voices, and was last updated 2 years ago by
Shahriar.
Is there a way to globally—or per item—redirect the item’s permalink directly to the uploaded file?
We’re using Download Manager for some PDF distribution and want to be able to provide an optional email-able link directly to the file.
Hi,
Do you mean you want to open the file on the browser when the visitor clicks the download button? It is possible by setting the option “Open in browser” from Downloads > Settings > General Tab.
Thanks.
That’s good to know, but no, I’m talking about the actual permalink of the Download Manager item page.
I’d like to redirect it to the download media file itself, rather than the Download Manager item page.
I want to create ‘copy link’ links in the descriptions so our staff can copy the file URL to send to customers, like in this screenshot:
https://www.dropbox.com/s/v47y2i6y28ub0ts/Screenshot%202024-01-25%20at%201.34.57%E2%80%AFAM.png?dl=0
I created short redirects to the permalinks, but then realized the permalink goes to an item page, like this:
https://www.dropbox.com/s/gowpoifsioyrgw7/Screenshot%202024-01-25%20at%201.38.15%E2%80%AFAM.png?dl=0
So, I’m looking for a way to make all the permalinks, e.g. ‘https://digitalfusion.net/download/df-print-fulfillment-services/’ link to the media file directly and not the page as it does now.
SEO plugins like Rank Math and All-in-One SEO have features to do this for the actual Media Library item pages, but it doesn’t work on these Download pages.
Does that all make sense?
Is there a template for those pages that can be edited to do this via a child theme, perhaps?
Btw, that “Open in browser” setting should have an option to open the file in a new tab/window.
Thanks,
Michael
Hi,
I think you can utilize the master download link for your use case. You can copy the master download link of a package from the ‘Al Files’ admin page. Just click the mini download icon under the package name.
You can also use this URL format to share the direct download link https://site.io/download/my-file/?wpdmdl=PACKAGE_ID But this will work only when the package has no locks or restrictions.
Note: Deleted duplicate replies in this ticket. Your old reply was marked as spam for an unknown reason. I have unspammed it.
Thanks.
You can copy the master download link of a package from the ‘Al Files’ admin page.
What/where is the “‘Al Files’ admin page” ? Can you provide a path and/or screenshot of what you’re referring to?
The direct download link https://site.io/download/my-file/?wpdmdl=PACKAGE_ID method works, but not directly provided anywhere.
It’d be nice if the direct download link was shown/copyable on the Item’s admin page.
Never mind. I think you meant “All Files”.
The URL format you provided will work. That link is a lot shorter than the Master Download link, which is very long.
That link would be convenient to have copy-able from the “All Files” page along with the shortcode.
Both of these—the shortcode and the shorter download link would be good to have on each Item’s page as well.
Thanks.
One more question on this. I noticed that the direct download link https://site.io/download/my-file/?wpdmdl=PACKAGE_ID method will directly download the file.
Is there a different format for this URL that would not force a download, but open it in a browser tab instead? e.g. a View Link format?
Related, I see there is an ‘Open in Browser‘ option in the admin, but this doesn’t open in a new tab, it overtakes the current tab, which is not desirable. It’d be nice if this setting had an option to open the link in a new tab. Is there a way to do that?
Hi,
If the “Open in Browser” option is enabled the ?wpdmdl=PACKAGE_ID link will open the file on the browser ( when possible, for some file types not possible ).
To open the file in a new tab you need a custom link/page template with the following code,
<a href="[download_ur]" target="_blank" rel="noopener">Download Now!</a>
Thanks.
The topic "Permalink directly to file URL?" is closed to new replies.