Redirect to appropriate page and fragment when creating or editing a comment