title: How to add div id url
body: <p>I have a URL which goes to login page. After successful login, I want to redirect to the particular page. For this, I have used below the line.</p>
  
  <blockquote>
    <p><a href="http://example.com/user/login?destination=gallery" rel="nofollow">http://example.com/user/login?destination=gallery</a></p>
  </blockquote>
  
  <p>This URL redirects the user to the gallery page after login. In want gallery I want show recent section after login . So I changed the URL to </p>
  
  <blockquote>
    <p><a href="http://example.com/user/login?destination=gallery#recent" rel="nofollow">http://example.com/user/login?destination=gallery#recent</a>
    and
    <a href="http://example.com/user/login?destination=gallery?id=#recent" rel="nofollow">http://example.com/user/login?destination=gallery?id=#recent</a>.</p>
  </blockquote>
  
  <p>Both not taking user to recent section, also #recent id was removed from URL after login. </p>