Look in the URL bar to see what address it is taking you to. You probably need to adjust the href to ensure its pointing to the correct folder as well, or use
new moodle_url('/your/path/to/file.php')
Look in the URL bar to see what address it is taking you to. You probably need to adjust the href to ensure its pointing to the correct folder as well, or use
new moodle_url('/your/path/to/file.php')