Create a course with self enrollment having a key for students.
Create HTML Block with an image, set the block to display on any page.
Use a student/dummy account to self enrol into the above course.
on clicking enrol me, the page redirects to open the last image used within the above created html block, it doesnot go to the course!
correct behaviour should be going to the course and not the image of the block.
This has been tested with the latest moodle version on demo.moodle.net
Please help solving this problem,
Thankyou,