• When a link target has multiple dots, the download event doesn’t trigger. Like with this URL:
    https://mysite.com/VSCodeUserSetup-x64-1.72.2.exe

    This is a pretty standard naming convention for installers (that filename is from Microsoft).

    The file extension is the last part of the filename, so the string should be split on the last dot, not the first dot.

    In this file: \pixelyoursite.9.2.1\pixelyoursite\dist\scripts\public.js on line 1056:
    link = link.substring(link.indexOf(".") + 1); // Remove everything but what's after the first period

    should probably be something like:
    link = link.substring(link.lastIndexOf(".") + 1); // Remove everything but what's after the last period

    Thank you!
    / Johan

  • The topic ‘Download event doesn’t work with multiple dots in URL’ is closed to new replies.