If a user lands on a private area page …Is it possible to create a redirect that will take a visitor to a Login or Registration page if they are not Logged-In or Registered with the site?
There seems to be many variables that could stop your login form from showing up … I was able to get it showing up by:
{% block main_content %}
{% include 'partials/login-form.html.twig' %}
{% endblock %}
Key here is the Block name “main_content” instead of “content”… “CONTENT” is the default name in the plugin folder… MAIN_CONTENT is the name I gave in my partials/base.html.twig template