I have an AngularJS application that is using ui-router. All is working okay but I would like to have a user registration confirmation screen accessed like this:
http://localhost:2757/Auth/confirmation
In my present configuration when I open a browser page with this link it does not look for the index.html and does not go to the /Auth/confirmation state. I understand why this happens but I do not know how to solve the problem.
Can someone give me some advice on how / if I can make a link that will get me to the /Auth/confirmation directly.
All I can think of is perhaps something like this:
http://localhost:2757/index.html?load=AuthConfirm
and then somehow have a check that detects a new state to transition to once the index.html is loaded up.
Here is my AppConfig file:
var auth = {
name: 'auth',
url: '/Auth',
views: {
'root': {
templateUrl: 'app/auth/partials/home.html'
}
}
};
var authContent = {
name: 'auth.content',
url: '/:content',
views: {
'root': {
templateUrl: 'app/exams/partials/home.html'
},
'content': {
templateUrl: function (stateParams) {
return 'app/auth/partials/' + stateParams.content + '.html'
}
}
}
}
Here's something I tried:
http://localhost:2757/index.html << takes me to my main index page
http://localhost:2757/index.html/Auth << returns page not found
http://localhost:2757/index.html/Auth/register << returns page not found