If it were me, I would try this ...
- change a link like this:
<a href="../../course/view.php?id=99">
- to something like this:
<a href="../../course/view.php?id=99" onclick="location='../../course/view.php?id=99'; return false;">
Although the href="..." will be converted, to an absolute
URL, the onclick="..." will not be, and the onclick will override the href="..." when the quiz appears in the student's browser.
cumprimentos,
Gordon