For some time it works ok! The button shows, the system works as described.
After a while.. the iframe gets broken, and instad of the Download Button it shows an iframe with the index page.
Why is that?
Initially:
After a while: Please help me fix this
Edit: Fixed! The problem is because bbcode_tpl has a relative path. (./app.php). I have a SEO Extension that has virtual folder structure (Example: domain.com/my-forum/my-topic-t1.html)
Because the path is relative, it redirects to https://mydomain.com/my-forum/app.php if the download button is in /my-forum/.
To fix that go to extension -> migration -> payfordownload_install.php > bbcode_tpl > and remove the dot "." in front of /app.php.



