Go to page section after redirect I wanted to provide feature where non-logged in users can click on "Rate" button, which will lead them to login and after login they come back to the page. Upto this, it is working fine. 

But I want user's to go to particular section of page, div with id = "id1". 

How can I achieve this?

-- Many thanks for your time.

This is what I have tried:

$destination = drupal_get_destination();

$options = array( 'query' =&gt; $destination,'fragment'=&gt;'div_id');

print l('Review', 'content/login', $options);
This works for me...

$destination = drupal_get_destination();
$destination['destination'] .= '#div_id';
$options = array( 'query' =&gt; $destination);
print l('Review', 'content/login', $options);