open-lms-open-source / moodle-theme_snap

GNU General Public License v3.0
79 stars 75 forks source link

missing href content for Resources on course page #273

Open andrewrowatt-masseyuni opened 8 months ago

andrewrowatt-masseyuni commented 8 months ago

Hi Team,

On my Open LMS site, on the course page, File (e.g., PDF) and URL resources are missing href content.

<a onclick="window.open('https://owrt-sandbox.mrooms.net/mod/resource/view.php?id=168&amp;redirect=1'); return false;" class="mod-link" href="">
<div class="activityiconcontainer resource"><img class="iconlarge activityicon" alt="" role="presentation" src="https://owrt-sandbox.mrooms.net/theme/image.php/snap/resource/1702653298/monologo?filtericon=1"></div>
<p class="instancename">Lorem ipsum dolor sit amet</p>
</a>

The expected behaviour works when the resource is clicked. But if you right-click and copy the link the result is the course page e.g. https://owrt-sandbox.mrooms.net/course/view.php?id=5.

For better or worse, many of our staff copy these links to use in other areas of the course.

Thanks, Andrew