Target option in Link feature is missing
Submitted by DH_moodle on Tue, 11/05/2024 - 15:10
Forums:
Hello,
We are using H5P in moodle and used to be able to specify where an inserted link would open via the target tab. So for example, a link at the end of a Course Presentation links to the next H5P which opens on the same page.
Since very recently, this option seems to be missing. We can now only insert a link and it will always open in a new tab, which is unfortunate for user experience.
Is this a changed feature and can it be brought back? Does anyone else experience this?
Thanks a lot!
Summary:
Target option in Link feature is missing
MR Moodle
Thu, 08/21/2025 - 19:17
Permalink
Target option in Link feature is missing
I am experiencing the same issue. Will the target option in the link feature be reinstated? It is particularly problematic with H5P interactive books, especially when one wants to link different sections of the book, but the link only opens in a new tab rather than on the same page. Could you please fix this? Thanks!
Mireilleh5p
Thu, 09/25/2025 - 14:27
Permalink
possible solution-> how link in same tab
I had the same problem, not being able to link from one course presentation to the next and stay in the same tab. Adding this attribute after the id worked for me:
/window.open("https://www.youraddress.com","_self")
Mireilleh5p
Thu, 09/25/2025 - 14:32
Permalink
possible solution link to open in same tab
I had the same problem, not being able to link from one cp to another AND staying in the same tab. Adding this attribute (after id) worked for me:
/window.open("https://www.youraddress.com","_self")
DH_moodle
Mon, 10/06/2025 - 18:29
Permalink
Thanks for the suggestion!
Thanks for the suggestion! Could you share a full example for an URL? I have tried https://www.youraddress.com/window.open("https://www.youraddress.com","_self") with our URL inserted instead of youraddress... but it still opened in another tab.
Mireilleh5p
Fri, 10/10/2025 - 19:31
Permalink
open link in same tab
Hi DH_moodle, I realise I have the perspective of a moodle site, the page ends with an id number. You add the link directli after the id number.