title: $location.path not working in $mdDialog.show
body: <p>I used Angular Material (Prompt) in my project. I have to do a post request and after that redirect to another page after (OK) is clicked. I have used $location.path("/ABC") at many places and works fine. But if i use $location.path inside $mdDialog, it is always redirecting to root ("/"). Has anyone faced similar issue?</p>