title: Why does it display the address like this in web api (asp.net core 6)?
body: <p>I get this problem when I run the port inside the docker container.</p>
  <p>I have used the attribute like this :</p>
  <pre><code>[HttpGet(&quot;{id:length(24)}&quot;, Name = &quot;GetProduct&quot;)]
  </code></pre>
  <p><a href="https://i.stack.imgur.com/lJztI.png" rel="nofollow noreferrer">Api List</a></p>
  <p>But when I use the internal port of the project (lunchSettings), it is displayed correctly</p>
  <p>I want to call this address:</p>
  <p>http://localhost:5000/api/v1/Catalog/602d2149e773f2a3990b47f5</p>
  <p>But when I  Containerize my project, the address changes like this :</p>
  <p>http://localhost:5000/api/v1/Catalog/602d2149e773f2a3990b47f5:length(24)</p>
  <p>&quot;length(24)&quot;
  I don't want it to be added to the end</p>
  <pre><code>[HttpGet(&quot;{id:length(24)}&quot;, Name = &quot;GetProduct&quot;)] 
      [ProducesResponseType((int)HttpStatusCode.NotFound)]
      [ProducesResponseType(typeof(Product), (int)HttpStatusCode.OK)]
      public async Task&lt;ActionResult&lt;Product&gt;&gt; GetProductById(string id)
      {
          var product = await _productRepository.GetProduct(id);
          if (product == null)
          {
              _logger.LogError($&quot;Product with id: {id}, not found.&quot;);
              return NotFound();
          }
  
          return Ok(product);
      }
  </code></pre>
  <p>docker compose:
  <a href="https://i.stack.imgur.com/Jl5YC.png" rel="nofollow noreferrer">docker compose code</a></p>