ASP.NET Core Identity change login URL : <p>I'm using ASP.NET Core 2.1 and I used scaffolding to add Identity, which is working OK Except that when I try to go to a page that requires login, it takes me to:
<code>/Identity/Account/Login?ReturnUrl</code></p>

<p>How do I change it to go to just /Account/Login which is my own login page i created.</p>

<p>I tried this:</p>

<pre><code>services.ConfigureApplicationCookie(options =&gt;
                {
                    options.AccessDeniedPath = "/Account/AccessDenied";
                    options.Cookie.Name = "Cookie";
                    options.Cookie.HttpOnly = true;
                    options.ExpireTimeSpan = TimeSpan.FromMinutes(720);
                    options.LoginPath = "/Account/Login";
                    options.ReturnUrlParameter = CookieAuthenticationDefaults.ReturnUrlParameter;
                    options.SlidingExpiration = true;
                });
</code></pre>

<p>but it still goes to /Identity/</p>
