title: Thymeleaf - construct url without string concatination
body: <p><strong>As I am using distributed services I need this format:</strong> <code>baseUrl/path</code>. <strong>So using the variable as parameter will not work out.</strong></p>
  
  <p>I got the following code:</p>
  
  <pre><code>@GetMapping(HOME)
  public String showHomeView(@PathVariable Integer cartId, Model model){
      Integer customerId = cartRequestComponent.getCustomerIdByCartId(cartId);
      Customer customer = getCustomerById(customerId);
      model.addAttribute("articleServiceBaseUrl", articleServiceBaseUrl);
      return "home";
  }
  </code></pre>
  
  <p>And the href:</p>
  
  <pre><code>&lt;a th:href="${articleServiceBaseUrl}/article/addArticle"&gt;Add article&lt;/a&gt;
  </code></pre>
  
  <p>Also tried:</p>
  
  <pre><code>&lt;a th:href="${articleServiceBaseUrl}+/article/addArticle"&gt;Add article&lt;/a&gt;
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>&lt;a th:href="__${articleServiceBaseUrl}__/article/addArticle"&gt;Add article&lt;/a&gt;
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>&lt;a th:href="__${articleServiceBaseUrl}__+/article/addArticle"&gt;Add article&lt;/a&gt;
  </code></pre>
  
  <p><strong>This works but I prefer not to use as I got longer urls few more variables</strong></p>
  
  <pre><code>&lt;a th:href="${articleServiceBaseUrl}+'/article/addArticle'"&gt;Add article&lt;/a&gt;
  </code></pre>
  
  <p>For others this works pretty fine:</p>
  
  <pre><code>/customer/home/__${cart.cartId}__"&gt;home&lt;/a&gt;
  </code></pre>
  
  <p><strong>How can I inject variables without using <code>'</code>?</strong></p>