fix link to tdmu site

Signed-off-by: semteacher <semteacher@gmail.com>
fix login redirect:
1. move tdmu code to the core_login_get_return_url() function
2. replace deprecated functions

Signed-off-by: semteacher <semteacher@gmail.com>