title: WicketRuntimeException: component logout not found on page LogIn
body: <p>Login submit button:</p>
  
  <pre><code>if(loginAllowed) 
  {
    if (!continueToOriginalDestination())
    {
      setResponsePage(General.class);
    }
  }
  </code></pre>
  
  <p>General page logout button:</p>
  
  <pre><code>getWicketWebSession().invalidateNow();
  getRequestCycle().setRedirect(true);
  setResponsePage(LogIn.class);
  </code></pre>
  
  <p>It works good when user is in session. But when session expires and user click "logout" - we save in PageMap "general?wicket:interface=:1:logout::ILinkListener::" and when user log in - we get exception:</p>
  
  <pre><code>wicket.RequestCycle | org.apache.wicket.WicketRuntimeException: 
  component logout not  found on page LogIn[id = 1], 
  listener interface = [RequestListenerInterface name=ILinkListener, 
  method=public abstract void
  org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()
  </code></pre>
  
  <p>But I'm still needed to redirect users and can't delete continueToOriginalDestination().
  Can you give me some advice?</p>