Method to determine redirect after login
You are correct in feeling uneasy about the hardcoded URLs: I would put them in a config file. 

By hardcoding them you will be forced to rebuild the project should you change to a different server while using a configuration file you can change it whenever you want and it will get picked up automatically.