title: Servicestack routes only resolving with // after hostname when route specifies /
body: <p>I have a net5.0 rest service with ServiceStack 5.14 running in Visual Studio Professional 2022.</p>
  <p>Routes are getting defined like this in a Apphost.cs</p>
  <pre><code>public override RouteAttribute[] GetRouteAttributes(Type requestType)
      {
          var routes = base.GetRouteAttributes(requestType);
          routes.Each(x =&gt; x.Path = &quot;/api&quot; + x.Path);
          return routes;
      }
  </code></pre>
  <p>Giving us a ServiceStack RouteAttribute.paths like &quot;/api/things&quot; .. all good, as expected.</p>
  <p>But if I run it in VS and request http://localhost:64200/api/things I get an Http 405 and a &quot;NotImplementedException&quot;</p>
  <p>And if I request http://localhost:64200//api/things (Note the '//' after the port) it works HTTP 200. Sadly not expected and breaks my client.</p>
  <p>Anybody got any ideas what's causing this? I thought maybe some Kestrel &amp;/ Visual Studio shenanigans but I am running other netcoreapps without ServiceStack and they serve as expected...</p>