window.location.href not working in mobile device in an ionic app
<p>I am trying to open a view with a function call from UI side</p>

<pre><code>&lt;ion-option-button class="button-light icon ion-chatbubble" ng-click="openView('username')"&gt;&lt;/ion-option-button&gt;
</code></pre>

<p>the controller code for the same is </p>

<pre><code>$scope.openView=function(user){
        window.location.href ="/signin.html#/im?p=@"+user;
      };
</code></pre>

<p>Now this works perfectly in the browser but when I test this in mobile device I get the following error :-</p>

<blockquote>
  <p>ERR_FILE_NOT_FOUND(file:///signin.html#im?p=username)</p>
</blockquote>

<p>I know there are multiple ways and preferably one should use ui router etc but I have load the view of another angular app inside my app that is why I am somehow stuck on this.</p>