title: Different base paths depending on Development/Production environment
body: <p>I just published a Blazor app on our development server to test if everything is running fine. I set up the server so that i would have to access the app under an address like that: </p>
  
  <pre><code>serveraddress:8090/UserManagement
  </code></pre>
  
  <p>On my local development machine I don't need the UserManagement folder, I just access and redirect directly to my pages. My index page for example would be available at </p>
  
  <pre><code>@page "/"
  </code></pre>
  
  <p>on my local machine. But when I run the software on the development server, there should be an additional /UserManagement tag added to the path. I set the ASPNETCORE_ENVIRONMENT variable to "Development" on my server and tried to change the  tag in the _Hosts.cshtml as follows:</p>
  
  <blockquote>
  <pre><code>&lt;environment include="Development"&gt;
      &lt;base href="~/UserManagement" /&gt;
  &lt;/environment&gt;
  &lt;environment include="Production"&gt;
      &lt;base href="~/" /&gt;
   &lt;/environment&gt;
  </code></pre>
  </blockquote>
  
  <p>Unfortunately, this does not work and all the redirects go to / instead of /UserManagement/. Any idea?</p>