how to set loginPath in config file I made a modal for login at homepage and put {%requireLogin%} tag in "User Profile" page.
My general.php file looks like below:

'dev' =&gt; [
        // Base site URL
        'siteUrl' =&gt; null,

        // Dev Mode (see https://craftcms.com/support/dev-mode)
        'devMode' =&gt; true,
        'loginPath' =&gt; '/',
    ],


I hope to prevent users to go to "User Profile" page without login and redirect them to homepage. But the issue is when I login on the homepage, the browser gives an error redirected you too many times.

Any idea how to do that please? Many thanks!!
OK, no one answered....I have to take another way to do which is to put a piece of code like this into user-profile page

{% if not currentUser %}
  {% redirect '/' %}
{% endif %}


and take out loginPath setting in config file.