Back-button Deep Linking


#1

Hi,

I’m having a tough time getting the back-button to work when deep-linking to a different view.

For instance in app.js I have:
config(function($stateProvider, $urlRouterProvider) {
$stateProvider

// setup an abstract state for the tabs directive
.state('tab', {
    url : "/tab",
    abstract : true,
    templateUrl : "templates/tabs.html"
})

// Each tab has its own nav history stack:

.state('tab.schedule', {
    url : '/schedule',
    views : {
        'tab-schedule' : {
            templateUrl : 'templates/tab-schedule.html',
            controller : 'ScheduleCtrl'
        }
    }
}).state('tab.projects-view', {
    url : '/applications/:applicationId',
    views : {
        'tab-schedule' : {
            templateUrl : 'templates/projects-view.html',
            controller : 'ProjectCtrl'
        }
    }
}).state('tab.project-detail', {
    url : '/applications/:applicationId/:projectId',
    views : {
        'tab-schedule' : {
            templateUrl : 'templates/project-detail.html',
            controller : 'ProjectDetailCtrl'
        }
    }
}).state('tab.users', {
    url : '/users',
    views : {
        'tab-users' : {
            templateUrl : 'templates/tab-users.html',
            controller : 'UsersCtrl'
        }
    }
}).state('tab.user-detail', {
    url : '/user/:userId',
    views : {
        'tab-users' : {
            templateUrl : 'templates/user-detail.html',
            controller : 'UserDetailCtrl'
        }
    }
})

and I’m trying to link directly to the templates/user-detail.html from project-detail.html (url : ‘/applications/:applicationId/:projectId’), via href="#/tab/user/{{assignment.userId1}}".

While it brings me to the correct page, the back button doesn’t show up in my nav bar like it does with normal navigation. Any suggestions? I’m very new to angular/iconic.


#2

I would really like to know that too. anyone? @andy? (i read on this forum, that one developer named andy is the navigation-guru. if its not you andy, sorry for the ping :wink: )