title: Display current service gateway url by using Thymeleaf
body: <p>I'm having trouble with finding a solution to display my current service url (registered with eureka and called up through a zuul gateway), like: <code>http://localhost:8080/services/someservice</code> with Thymeleaf in a client html page. </p>
  
  <p>I've tried using <code>#httpServletRequest?.requestURL</code>, but that returns how the service is registered with Eureka, like: <code>user.somepackage.com:someservice:8011</code>, which isn't exactly what I want. </p>
  
  <p>One possible solution I have for this is to assign a variable in Thymeleaf once with the url hardcoded, or do it through a Spring controller, but I don't think this is a neat.</p>
  
  <p>Maybe somebody had a similar problem and found a better solution. </p>