downloadHandler does not download but create a copy of the app

Hi everyone,

I recently got a problem with downloadHandler. Have you guys encountered the problem when you click the download button, a new website is opened but instead of downloading the file and exit, the new website displays a new shiny app with all previous operations cleared. Additionally, when this happens, the downloadHandler in server is not even triggered.

Nevertheless, this is not a big problem because the old website still exists and I could still do operations on it, and the downloadHandler works the second time I click it. But I think it might confuse the user.

Anyone has a similar experience?