I'm using a Joomdle system, and embedding Moodle in an iFrame using that and want to have Moodle working completely within that frame.
One problem that is happening is that when an external tool activity is used (I'm using catapult) that gets embedded in another frame within the frame, which is fine, but it seems as though all of the links outside that frame in the normal Moodle frame get a 'target="_top"' added to them.
I'm guessing that this is a built in thing with the way Moodle handles iframes so that links don't end up opening within the external tool frame. But the problem is, this ends up opening Moodle outside of the Joomdle frame when breadcrumbs are used to navigate back, because of the _top.
I've been searching through everything I can think of, the php files in the mod/lti folder, the navigationlib.php, etc. And I can not find out where this _top is coming from. I'm thinking that if I can just change that to _self, or remove it completely, it might solve this problem.
Does anyone know how Moodles handles this, and where that _top is coming from?