Im using Moodle 3.1 in host aria and I create a course many time and finally,
I downloaded sample demo from moodle site and restore, Even sample demo site also after restoring, when I click on a .PDF file its redirected to login window and tell "http://nanasa.edu.lk/moodle/mod/resource/view.php?id=2&redirect=1"