Problems with Last Visited Page action

In my course I have a Help page that used to open in a separate window, but that's been causing problems for our mobile users, so I'm converting it to go to the page, then return to the last viewed page, but it doesn't seem to be working.

undefined

Discussion (13)

Hi Jennifer,

undefined

I don't have it set to Previous page - I have it set to "Last Visited Page". I'm using Lectora Inspire v16.2. Screenshot attached of the action on the shape, but nothing happens when I click it.

Last-Visited-Page.png

Joe, did you by any chance cover the entire return to last page visited shape with a text box that indicates what clicking on the shape does thereby preventing the click? Don't laugh, I just did that it by accident trying to re-create your problem...

Let's troubleshoot. Two ideas:

1. Replace the "go to last visited page" action with "display message - Hello!" - does it fire at all?

2. Are you previewing this in Lectora or locally? Upload whole course to an LMS / web server, try it there.

Previous page sends the user to the previous page, relative to the current location. So if it's the only page within it's chapter it may not recognize where it should go. Try switching it out with Previously Visited Page. That one will take the user to the previously visited page, regardless of its location within the title.

I'm on v16.2 Tim. I can't understand why it's not working either. Like I said - I have another Lectora Course where I've done exactly the same thing and it works. It's like once it gets to the Help page, Lectora can't remember where it's come from. The Help Page is the only page in the Help Chapter. I can go to it from any other Chapter in my course , but it won't g back. Here's the action on the Help button:

undefined

Go-To-Help.png

Yes - changing it to the message action does fire and display the message. Changed it back to the GoTo Last Visited Page action and nothing happens again. It's like it can't remember what the last page does.

I'm previewing it in Lectora, using F11. All my other actions work except for this one.

undefined

Which version of Lectora is it? I can't recreate the issue in v16.1.2. For me, Go to "Last visited page" is working in Preview (F11) in a responsive course as well.

Tim

Hi Joseph!

You said that when you changed the Help page 'return' button to display a 'Hello' message, that it worked, right?

Can you try setting it to return to a specific page in the course (not the 'last visited' - any given page) and see if it works then?

Also, you mentioned that you have a 'shape' on the Help page. Did you literally mean one of the Lectora shapes? Or have you created (or imported) a button?

And one of my last troubleshooting techniques is to just give up trying to figure out what went wrong with something and just recreate it from scratch - that tends to work more often than not if I run up against something that misbehaves for no apparent reason.

Good luck!

Hi Darrel,

Not laughing at all - that was the first thing I checked! The item that triggers the action has the text built in, and there's nothing else layered over it.

undefined

Hi Jane,

I just changed the action to jumping to a specific page, and that worked. Changed it back to Last Visited Page and nothing again. I do literally mean a shape with an action attached. This was the first course I created in Lectora, so and I can't remember why I made some of the items shapes instead of buttons, but they work everywhere else in the course.

Unfortunately, this is a 4 Chapter, 27 page course with built in simulations, a 10 question test and responsive design, so I don't really have the option of just starting again.

Hi Joseph,

Being that you have one title that works with the same setup and no one else can replicate the same issue, it would appear to be something specific to your title. If you could zip up your title and upload it to http://cds.trivantis.com, I can take a look at it for you. I can create a support case for you once you let me know the title has been uploaded or you can go http://trivantis.com/contact-support/ and create your case there.

Thanks,

Ed

I deleted the shape, saved the course and closed Lectora. I then opened it again, added a button this time and still the same problem. I've even tried replacing it with the Java code you gave Tim, and still the same problem.

I went into the run version and turned on the debug window then ran a preview, and the debug window says that the action on the button fired, so it thinks it's working, but nothing is happening. It's like it's lost the history somehow.

I haven't published this yet, so I've only been testing it in the Lectora previews.

Shapes should work, these are .pngs after publication. I tested with a shape as well and it worked. By the way, did you test in the published files? Your users won't see the Lectora preview. I don't think it will be necessary to just start again, but it may be useful to delete and rebuilt the "Go to last visited page" button / shape. If you're familiar with the IE developers tools (F12) or Firebug it may be an idea to use this to find out what the shape does in the browser.

Another option could be to use the javascript code of Lectoras "go to last visited page" action. Change the action to

Action: Run Javascript

Javascript:

trivExitPage( ';history.back()'; );

and see if that works.

Tim

Hi Ed,

I logged a new case with Trivantis last night (Case #137541 ) and uploaded a cropped version of the eLearning file this morning. I've had to crop some of the content out for confidentiality reasons, but I've checked and the problem is still occurring in the cropped version.

Joseph

Discussions have been disabled for this post