To fix this issue, open your favorite browser and then go to its configuration settings and force it to become the default browsers that it's started when a URL is accessed. After this process, repeat the step in IDM and it should work. This happened because the URL was associated with Notepad instead of your default browser.