General developer forum

How to make a link in Footer NOT open in new tab

 
Picture of Nikos Palavitsinis
How to make a link in Footer NOT open in new tab
 

Hello, using Moodle 3.4 and Theme Klass. 

I have some links in the footer of the page, that in opposition to other links in my Moodle (e.g. menu on top right), they always open in a new tab. How can I stop this? 

Already tried changing it from: Home/Site administration/Plugins/Activity modules/URL but it doesn't work. 

Do you think that I have to "temper" with the Theme code to make this work? 

Thanks!


 
Average of ratings: -
Picture of Conn Warwicker
Re: How to make a link in Footer NOT open in new tab
Core developersParticularly helpful MoodlersPlugin developers

Hi,

That theme is forcing new tabs on those links.

You can see it on line 425 here: https://github.com/lmsace/klass/blob/e9986d975876ecdc2a33b584779c19163b5212f5/lib.php#L407

If you've got access to the code behind your site, you can just change that line to remove the target="_blank" bit.

 
Average of ratings: -