• Resolved svenatkins

    (@svenatkins)


    Hello, I have a problem where PDF files don’t open in a new tab but get a pop-block in firefox and safari. In chromium based browsers like Chrome, Brave, Edge the PDF opens in a new tab.
    This problem persists even with a clean WordPress installation using the standard theme and only the download plugin activated.
    Any idea what can I do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @svenatkins ,

    Thank you for pointing that out. The redirect to file, in new tab, is handled by JS after some verification, and is not considered a direct action of the user, so some browsers block that as an unwanted pop-up. We’ll work on a solution for version 5.0.0 of the plugin, until then a temp fix for this would be deactivating the XHR download, by adding the following PHP snippet to your child theme’s functions.php file:

    add_filter( 'dlm_do_xhr', '__return_false' );

    Warmly,
    Razvan

    Thread Starter svenatkins

    (@svenatkins)

    Thank you. That’s works for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PDF files get pop-up block in firefox and safari’ is closed to new replies.