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' => $destination,'fragment'=>'div_id'); print l('Review', 'content/login', $options);