Spring MVC behind reverse proxy (Zuul)
<p>I'm building an application is based on the Microservices architecture. I have a microservice that uses Spring MVC and a reverse proxy is provided by Zuul. 
Without Zuul my microservice is accessed by 
<code>http://localhost/</code> and with proxy by <code>http://localhost/ui/</code> . 
So when I click on a link on the main page I have to go <code>http://localhost/ui/order</code> but I go to <code>http://localhost/order</code> and of course I get "Not found".
When a request goes throw Zuul, Zuul adds the headers: <code>X-Forwarded-Host</code>, <code>X-Forwarded-Port</code>, <code>X-Forwarded-Prefix</code> (equals /ui/). </p>

<p>I'm using Spring Boot 1.3.2 + Thymeleaf + Tomcat.</p>

<p>Question: How can I configure spring mvc to add prefix to my links or maybe exist another solution?</p>

<p><strong>UPD:</strong> I found an interesting behavior.
I replaced the link from {/order} to {./order} and when I'm on <code>http://localhost</code> the link has a next href <code>http://localhost/order</code> , but when I'm on <code>http://localhost/</code> (add /) the link has <code>http://localhost/ui/order</code> . What is this? </p>