Open a page when clicking push notification

I have created a push notification app.The push notification is working properly.But On clicking the notification i have to open a particular page.

   $ionicPush.register().then(function(t) {
            $localstorage.setObject('token', t.token)
            console.log('Token saved:', t.token);

this is the code i am using to save token.Iam receiving the push notifcations with this.

$scope.$on('cloud:push:notification', function(event, data) {
   var msg = data.message;
  alert(msg.title + ': ' + msg.text);});

Tried using this code .but it is not working