title: ionic exit iframe fullscreen mode to the wrong page
body: <p>I wan't to play Vimeo videos in my ionic app.
  I have a page to display the video.
  i have an iframe inside the view that contains the player for the video.
  when I click on the iframe it open the video on fullscreen mode.
  when I exit the video it should send me back to the view that contains the iframe but instead it send me to another view which is totaly not related to that view. it's hierarchicaly a far parent of that view.
  here's the code.</p>
  
  <pre><code>&lt;ion-pane ng-controller="HowToVideoDetailCtrl as howToVideoDetail"&gt;
  &lt;ion-header-bar class="bar bar-header bar-positive"&gt;
      &lt;button ng-click="howToVideoDetail.back()" class="button button-white button-clear"&gt;&lt;i
          class="icon ion-ios-arrow-left"&gt;&lt;/i&gt; Back
      &lt;/button&gt;
      &lt;h1 class="title"&gt;{{ video.title }}&lt;/h1&gt;
  &lt;/ion-header-bar&gt;
  &lt;ion-content class="has-tabs background-stable" scroll="false"&gt;
  
      &lt;ion-scroll&gt;
          &lt;div ng-init="howToVideoDetail.initVideo()"&gt;
          &lt;/div&gt;
          &lt;iframe ng-src="{{src}}" width="100%" height="360" frameborder="0" title="" webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen="true"&gt;&lt;/iframe&gt;
          &lt;p&gt;{{ video.description }}&lt;/p&gt;
      &lt;/ion-scroll&gt;
  &lt;/ion-content&gt;
  </code></pre>
  
  <p></p>
  
  <p>and the controller</p>
  
  <pre><code>(function() {
  'use strict';
  angular.module('app')
      .controller('HowToVideoDetailCtrl', HowToVideoDetailCtrl);
  
  HowToVideoDetailCtrl.$inject = ['$scope', '$stateParams', '$sce', '$ionicHistory'];
  
  /**
   * HowToVideoDetail screen template CONTROLLER
   * @param {object} $scope
   * @param {object} $stateParams
   * @param {object} $sce
   * @constructor
   */
  function HowToVideoDetailCtrl($scope, $stateParams, $sce, $ionicHistory) {
  
      var howToVideoDetail = this;
      $scope.video = $stateParams.video;
      $scope.src = $sce.trustAsResourceUrl('https://player.vimeo.com/video/' + $stateParams.video.uri.substring(8));
  
      howToVideoDetail.back = back;
  
      function back() {
          $ionicHistory.goBack();
      }
  }
  </code></pre>
  
  <p>}());</p>