Hi Virginia,
well done you found the solution! I was just going to say the same thing but in a more long-winded way. Since I prepared it, I'll post it in anyway.
all the best
Gordon
This cause of the problem is that the link to the Word document is specified as a relative link.
In addition, the link is set up to open in a new window using
Javascript, specifically the window.open() method.
To make the link work as required, you can either:
- Method 1. change the link to an absolute URL
- Method 2. do not use Javascript in the link
Details of how to make the above alterations appear below.
Method 1. change the link to an absolute URL
- login to Moodle and go to the main page of the course with this HotPot
- go to the Files area of the course and locate the Word document
- copy the URL of the Word document (=right click on the file name and choose "Copy Link Location")
- use this absolute (=full) URL in the link in the HotPot activity
Method 2. do not use Javascript in the linkchange this:
<a style="cursor: pointer; text-decoration: underline;"
onclick="window.open('Tastingadjectives1list.doc');return false;">here</a>
to this:
<a style="cursor: pointer; text-decoration: underline;"
href="Tastingadjectives1list.doc" target="_blank">here</a>
I may change the HotPot module to search for these kind relative links (i.e. used in the "window.open()" method) and replace them with absolute links. Thanks for reporting the problem!