title: Set Identity/Account/Login as Blazor Server landing page?
body: <p>I have read some solutions regarding similar requests but none have worked for me and I have no idea which way to go.</p>
  <p>I'm using ASP.Net Core 3.0, my Blazor application includes the standard authentication option ticked on creation and all I wish to do is the following:</p>
  <p>In my &quot;MainLayout.razor&quot; component page I have set the following:</p>
  <pre><code> &lt;AuthorizeView&gt;
       &lt;Authorized&gt;
           &lt;!--Navbar, APP Body and Footer configuration HTML which works --&gt;
       &lt;/Authorized&gt;
       &lt;NotAuthorized&gt;
           &lt;!--Simple button that gets displayed and on click goes to the login page--&gt;
           &lt;button onclick=&quot;location.href = 'Identity/Account/Login';&quot; class=&quot;btn btn-primary&quot;&gt;Enter&lt;/button&gt;
       &lt;/NotAuthorized&gt;
   &lt;/AuthorizeView&gt;
  </code></pre>
  <p>I would like to instead of having to click that button have the process automated so that it navigates to that page when a user is not authorized automatically.</p>
  <p>Is this possible as I have tried multiple ways of Navigation Manager and Startup configs but can't seem to just get the routing going.</p>
  <p>The head of the &quot;Identity/Account/Login&quot; page I have set to &quot; @Page &quot;/Account/Login&quot; &quot;.</p>
  <p>If I simply open my browser and just add &quot;...com/Account/Login &quot; to the URL end it directs to the correct page, I believe this should be something simple but I can't seem to figure it out.</p>
  <p>Any help would be much appreciated.</p>
  <p>Thanks.</p>