HTML block with images visibility and redirect issues

HTML block with images visibility and redirect issues

by Tabitha Parker (was Roder) -
Number of replies: 1

We have discovered that our HTML blocks show up before logging in, and then when you authenticate you are taken to an image URL from the html block instead of being taken into the course. We discovered this on courses that have guest access enabled, using a password. 


To reproduce:

  • BEFORE LOGGING IN - Navigate your Moodle site to a course that contains an html block with images in it.
  • You see the html block on the left (with placeholders for the images but not the actual images) and the course and guest access password fields in the middle. 
  • Log in. 
  • You get taken to one of the image URLs, not the course. 


Has anyone else experienced anything like this? It only works once then you have to clear browser history/cache to reproduce. But it is vey easy to reproduce on our site. 

Average of ratings: -
In reply to Tabitha Parker (was Roder)

Re: HTML block with images visibility and redirect issues

by Randy Thornton -
Picture of Documentation writers

Tabitha,

We also recently experienced a similar issue in a Moodle 3.0 site. We had an HTML block on the left of the front page, which contained an image inside it. The block was visible before login and behaved normally.

Upon logging in, for most but not all users, some but not all of the time, the user would then be redirected following the image URL as you described and so end up with a page with just that image inside of it. 

We tried resizing and changing images in the block, adding various target attributes, and moving the block around in different places, and other workarounds, clear the usual caches, etc., but it kept occurring, randomly but frequently.

Our only solution was deleting the block altogether and just leaving it out.

It was hard to reproduce and we have not had it occur on any other site, just the one. I have never seen anything like it before but the description of your issue is oddly similar.