Window.location.href = "#/board.html" not working

Hi, I am trying to change the url on window.location using javascript, it works in chrome, but when I upload the app to android device, it doesn’t work, any idea?

you should use $location.path from angularjs or $state.go from ui-router to navigate in your app.