title: Wicket 6.22 Automatic redirection to external URL
body: <p>I have a wicket (6.22) web application. I need to perform automatic redirection to an external URL. The scenario is described bellow:</p>
  
  <ol>
  <li>The customers enter their data in a form </li>
  <li>The server processes several actions and displays a result page</li>
  <li>The result page should last 5 seconds and then automatically redirect customers to an external URL.
  The result page contains a "back" link, so the customers may click on it to be redirected to the same external URL.</li>
  </ol>
  
  <p>I did use "renderHead" function to add tag </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;meta http-equiv="refresh" content="5; url=http://example.com"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The issue is that I need to invalidate the session before the redirection. If I do so, the customers are redirected to my ExpiredSession page instead of the external URL.</p>
  
  <p>Is their any clean solution to make it happend?</p>
  
  <p>Thank you for your help</p>