$state を以下のように構成しています。
.state('app.subjects.current', {
abstract: true,
url: "/:subjectId",
template: "<div ui-view />",
ncyBreadcrumb: {
skip: true
}
})
.state('app.subjects.current.home', {
url: '/home',
templateUrl: "assets/src/subject/subjectHome.html",
resolve: loadSequence('subjectHomeCtrl'),
ncyBreadcrumb: {
label: 'View'
},
string: 'sidebar.nav.pages.SUBJECTHOME'
})
$state.go('app.subjects.current.home', {subjectId: '999'}); を使用してこの状態に遷移します。
URL はアドレス バーに「<a href="http://localhost:12253/#/app/subjects//home?subjectId=999" rel="nofollow">http://localhost:12253/#」として表示されます。 /app/subjects//home?subjectId=999」. 実際には「<a href="http://localhost:12253/#/app/subjects/999/home" rel="nofollow">http://localhost:12253/#/app/subjects/999」になっているはずです/家"。
助けてくれてありがとう。