title: Angular - Not able to respond to the route
body: <p>When i hit the url <code>http://localhost:8000/something</code> it redirects me to <code>login</code>, why?</p>
  
  <p>Master template:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en" ng-app="app"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="csrf_token" ng-init="csrf_token='&lt;?php echo csrf_token(); ?&gt;'"&gt;
  
  
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;div ng-view&gt;&lt;/div&gt;
  
      &lt;script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.js"&gt;&lt;/script&gt;
      &lt;script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular-route.js"&gt;&lt;/script&gt;
      {{ HTML::script("js/ang/main.js") }}
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>var app = angular.module('app', ['ngRoute'], function($interpolateProvider) {
      $interpolateProvider.startSymbol('&lt;%');
      $interpolateProvider.endSymbol('%&gt;');
  });
  
  
  app.config(function($routeProvider) {
      $routeProvider
          .when('/something', {
              templateUrl: 'angular_templates/all-timelines.html',
              controller: 'timelinesCtrl'
          })
          .otherwise({
              redirectTo: '/login'
          });
  
  });
  
  
  app.controller('timelinesCtrl', function($scope, $http) {
  
  });
  </code></pre>
  
  <p>all-timelines.html</p>
  
  <pre><code>&lt;input type="text"&gt;
  </code></pre>