I am using Angular ui.router to navigate my application. Typically, the URL should look like this:
http://localhost:8001/
But in my case it looks like this:
http://localhost:8001/
What does it mean?
I also admitted that if I call a URL from this site that is different from my start page, I always redirect as the URL seems to be invalid.
mainApp.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) { 'use strict'; $urlRouterProvider.otherwise('start'); $stateProvider .state('start', { url: '/start', templateUrl: 'views/start.html' }) .state('registration-activate', { url: '/registration/activate/{activationKey}', templateUrl: 'views/registration-activation.html' }) ; }]);
Whenever I try to call localhost: 8001 / # / registration / activate / xyz, I get redirected to the start page.
source share