On Moodle 3.5
Note that this appears for sites without debugging enabled as well. With an ugly header of "sitepolicynotagreed" and this text below
Site policy not agreed: <a href="http://example.com">Click here to open the site policy.</a>
Please note: HTML is escaped so it looks exactly like that. It's not a working link. Example.com is my site policy URL.
This is the screenshot of the message
The user can simply close the (two) dialog boxes that appear. But it's very poor user experience
A solution seems to be here https://tracker.moodle.org/browse/MDL-56822, come with 3.2 version. But, on my 3.5, it's not fixed.
I hope community could give a hand
Thanks to all