Forum Discussion
Open Link in Same Tab
I've seen this discussed before, but I have not found a clear answer. I need a link to open in the same tab as the rise course. Essentially, this will exit the course and go to a page of my choosing. The Exit Course option does not work within the LMS I'm using (Moodle). However, if I can get a link to open in the same tab, this will give me the control I need. It appears all links default to opening in new browser tabs. Is there a way around this behavior?
49 Replies
- AndrewSmith-cbdCommunity Member
We also would love to have this feature
- JonathanBevanCommunity Member
this would be a great update
- CoreyCallahan-aCommunity Member
If you're comfortable with vanilla Javascript, you can add this on your exported page within a script tag. It seeks out any anchor tags with a specific domain and swaps out the "_blank" target attribute with "_self". I've put a timeout on it, because even though I'm firing this after the DOM loaded, it didn't seem to work without a delay.
var domReady = function(callback) {
document.readyState === "interactive" || document.readyState === "complete" ? callback() : document.addEventListener("DOMContentLoaded", callback);
};
domReady(function(){
setTimeout(function(){
var nldLinks = document.querySelectorAll("a[href='https://yourdomain.com/']");
for (var i = nldLinks.length - 1; i >= 0; i--) {
nldLinks[i].setAttribute("target","_self");
}
},1000)
})- FrankHansmann-bCommunity Member
Dear Corey,
I tried your script tag but it didn't work. Would it be possible to get some more details?
- FrankHansmann-bCommunity Member
We would need this feature urgently. I tried the mentioned javascript method. But it ist did not work as I have expected. Could you be so kind and dicribe how this works in your case.
I tried to ad your pice of script into the "main.bundle.js". The result was, that the cours did not start at all.
- DarlaYanchoCommunity Member
I also need this functionality for the LMS. Any updates, Articulate?? I'd really rather not ask my client to mess with their javascript....
No updates yet, Darla. Thanks for adding your support for this request!
- EmilyNixonCommunity Member
I also need this functionality quite urgently. Is there a way to know if this feature is on Articulate's to-do list?
Are there any other workarounds aside from the Javascript solution provided above? That didn't work for me unfortunately.
Hi Emily! This isn't something on our feature roadmap right now, but we'll let you know if we add it in the future.
- LauraWinzenCommunity Member
I also support this functionality. Very concerned about learners getting lost!
- HossamAnber-539Community Member
I also need this feature especially with courses on mobile devices. Thanks
Related Content
- 6 months ago
- 6 months ago
- 8 months ago
- 12 months ago