title: Using Thymeleaf to create links that open in a new window/tab
body: <p>In basic HTML, a link can have the <code>target="_blank"</code> property to force it to open in a new window or tab. But if when I put that in an <code>&lt;a href&gt;</code> tag that also includes a <code>th:href</code> for Thymeleaf, Thymeleaf overwrites the whole tag and wipes out my <code>target="_blank</code>.</p>
  
  <p>I've considered the brute force method of adding <code>target="_blank"</code> to every link as it is stored in my database so that it is already part of the link when Thymeleaf writes it out. But I would prefer a way to have Thymeleaf write the <code>target="_blank"</code> property as it is writing the <code>&lt;a&gt;</code> tag.</p>