Redirect to front end after user login

Users often only login to the site to edit a page or product, and this is most easily done from the front end by visiting the specific page or product, then selecting the edit option in the top menu. This code snippet redirects the user to the front end on login. The actual page url can be specified.