Enabling require authentication to read content causes stall

If setting:

Require authentication to read content on this site, disallow anonymous access.

is enabled while a site visitor is browsing and the the visitor navigates away from the current page (refreshes or clicks link) the the site will not re-direct back to login / home screen. See screenshots below:





  • Should there be a re-direct back to login page if admin enforces authentication requirement whilst non-authenticated visitors are on site ?

I’ve fixed this by forcing users to refresh when that setting is changed:

https://github.com/discourse/discourse/commit/c297af8ba1c7e2b1cf810ddfecea1cfb35368401

They should be redirected to the appropriate page if this setting is changed while they are browsing.

5 Likes