How to Redirect when login elgg 1.8

hi i am using elgg 1.8 how to redriect user to dashboard when using custom index please help