Fix url handling in student lightbox report

Now it will work for portals deployed under a subdirectory.