Fixed expanding url by using base url in setAction.
-HOME.
Added better error handling.
-HOME.