Solved

Link or Command that will return a Learner to their Dashboard from within a Course

Hello. :-)


I was wondering if there was a way to include a link, or some kind of JavaScript command that I might attach to a button, in Lectora which would direct the user back to their Dashboard. Would simply directing them to <company name>.rockstarlearning.com/dashboard do the trick...or is there something more to it?


Thanks.

Solution

Okay, it's not really that simple unfortunately!


Try adding a Run JavaScript action with the following statement:

top.location.href = 'https://<company name>.rockstarlearning.com/'

Discussion (4)

Yes! Just add a button, with an On Mouse Click triggered action Go to Web Address action, and in the address field put https://<company name>.rockstarlearning.com/dashboard

Okay, it's not really that simple unfortunately!


Try adding a Run JavaScript action with the following statement:

top.location.href = 'https://<company name>.rockstarlearning.com/'

If you get a prompt saying you have unsaved data you can disable that by putting in this statement:


myTop.noPromptOnUnload = true;

top.location.href = 'https://<company name>.rockstarlearning.com/'


Thank you! I'll give it a whirl! I very much appreciate you. :-)


I know they have the options to click the logo or use the hamburger menu, but from a design perspective...I wanted the redundancy of a button right in their face since their eyes will be focused more on the course than any other aspect of the screen.