Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
hi,
is there a quick hack to redirect guest (non logged in ) user to /login?
i did search and found some answer with modifying some core, and its over a year old, and not sure if that still relevant.
thanks!
Put this in your custom js section in your ACP
<script> $(window).on('action:ajaxify.end', function(ev, data) { if (data.url !== 'login' && !app.user.uid) { ajaxify.go('login'); } }); </script>
works! thank you so much @baris
oops, now new user cant register, it keeps redirect to login,
fixed
if (data.url !== 'login' && data.url !== 'register' && !app.user.uid) {
@baris could you please tell where the exactly custom is located in ACP
It is at /admin/appearance/customise#custom-header
/admin/appearance/customise#custom-header
@baris thanks