title: When Arriving at AngularJS-driven site, routed to / instead of actual link
body: <p>I have a site built with AngularJS. I use $routeProvider to define a bunch of routes. They all work fine when I am in the site already. Let's take the following:
  rooturl.com#/services/myservicename</p>
  
  <p>When the website is already open, on say the homepage at "#/", then everything is working fine, it routes to rooturl.com#/services/myservicename and loads the right content.</p>
  
  <p>Now, say I open a new browser, paste rooturl.com#/services/myservicename into the address bar, I get to my website, but I am routed to content for "/" instead of rooturl.com#/services/myservicename. </p>
  
  <p>It's basically the same as here:
  <a href="https://stackoverflow.com/questions/17472224/angularjs-routes-with-parameters-in-path-not-loading-in-html5-mode-when-going-di">AngularJS routes with parameters in path not loading in HTML5 mode when going directly to URLs</a>
  ...except I do not have this line, so I am not sure if the discussion about $locationProvider documentation applies to me?</p>
  
  <pre><code>$locationProvider.html5Mode(true);
  </code></pre>
  
  <p>Moreover, I am on a corporate intranet. I will NOT be able to get access to the server. Is there any client-side thing I can do, within the code of my angular site, to allow a user to  enter rooturl.com#/services/myservicename in the address bar, and always reach that route?</p>
  
  <p>Note sure which code is more important to the answer, but here is my .config in the app definition. The rest of the code that follows it are controllers and services.</p>
  
  <pre><code>app.config(function($routeProvider){
  
  $routeProvider
      .when('/',
          {
              templateUrl: 'app/partials/home_tpl.html',
              controller: 'HomeCtrl'
          })
      .when('/support/:subject',
          {
              templateUrl: 'app/partials/support-process.html',
              controller: 'SupportProcessCtrl'
          })
      .when('/support/:subject/:topic',
          {
              templateUrl: 'app/partials/support-process.html',
              controller: 'SupportProcessCtrl'
          })
      .when('/projects',
          {
              templateUrl: 'app/partials/project_list_tpl.html',
              controller: 'ProjectsCtrl'
          })
      .when ('/site-help',
          {
              templateUrl: 'app/partials/site-help.html'
          })
      .otherwise(
          {
          templateUrl: 'app/partials/404.html'
          })
  });
  </code></pre>