WordPress Download Manager
WordPress Download Manager
  • Pricing
  • Demo
  • Extend
    • Full Access Pack Get access to all items on this site with a BIG DISCOUNT
    • WordPress Form Builder Plugin Try it even if you are using another one and you may thank me later :)
    • Attire All-in-One WordPress Theme, only theme you will ever need

    Add-ons

    • Add-ons
    • Cloud Storage
    • eCommerce Add-ons
    • Email
    • Featured
    • Free
    • Marketing
    • Payment Gateways
    • Social Networking
    • Tools
    • UI
    • Widgets

    Customization Service

  • Discount Packs
  • Docs
  • Support
    • Search in Forum
    • Download Manager Pro
    • Download Manager Free
    • Pro Feature Request
    • How To...
    • Tips and Tricks
    • Contact Us
  • Blog
Login | Register
Forgot Password?
— Don't have an account yet? Register Now —
Home / Topics / Download Manager Free / Permalink directly to file URL?

Permalink directly to file URL?

  • This topic has 7 replies, 2 voices, and was last updated 1 year, 4 months ago by Shahriar.
Viewing 8 posts - 1 through 8 (of 8 total)
Jan 25, 2024 at 2:20 am #192636

Michael McHugh
Participant

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.

Jan 25, 2024 at 6:26 am #192643

Shahriar
Moderator

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.

Jan 25, 2024 at 10:00 am #192650

Michael McHugh
Participant

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

Jan 27, 2024 at 6:19 pm #192682

Shahriar
Moderator

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.

Jan 27, 2024 at 10:30 pm #192683

Michael McHugh
Participant

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.

Jan 27, 2024 at 10:38 pm #192684

Michael McHugh
Participant

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.

Jan 27, 2024 at 10:52 pm #192685

Michael McHugh
Participant

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?

Jan 28, 2024 at 6:24 am #192686

Shahriar
Moderator

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.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Permalink directly to file URL?’ is closed to new replies.

footer-logo

WordPress Download Manager

All in One Digital Asset Management & Complete eCommerce Solution for Selling Digital Products

Quick Access

  • Try Demo
  • Pricing
  • Affiliate
  • Contact

Blog

  • Updates
  • How-to
  • New Release
  • Tips

Support

  • Support Forum
  • Priority Support
  • Feature Request
  • Terms and Conditions