- Issue created by @leeksoup
So it turns out that the problem is caused by the local dev site running from a sub-directory. Even though I have set the RewriteBase to point to that directory, in some situations it fails to find resource because it is using the wrong paths. In this case, it should be:
localhost/XYZ/web/modules/contrib/anu_lms/...
and notlocalhost/anu_lms/...
I don't know why the
modules/contrib
also is missing from the path on the dev site. Maybe it doesn't find the site root so it can't resolve the rest of the path either??Whatever the reasons, this does work on the hosted site.