title: not to lose in the url parameter to go to another state int ANGULAR
body: <p>I'm sending a variable ($stateParams) in the url, to go to another template, I wonder if there is a way to go to the previous template that I visited, obtaining prior to the url and the parameter.</p>
  
  <p>for example i go to the template1 to template2</p>
  
  <pre><code>url of template1: localhost:8100/index/PARAM
  url of template2: localhost:8100/index/otherTemplate
  </code></pre>
  
  <p>if I return to template2 to template1, this URL appear </p>
  
  <pre><code>localhost:8100/index/
  </code></pre>
  
  <p>i loss the parameter..
  they are my states</p>
  
  <pre><code>.state('index', {
    cache:false,
    url: '/index/:PARAM',
        templateUrl: 'templates/index.html',
        controller: 'indexAppController'
  })
  
  .state('otherTemplate', {
    url: '/otherTemplate',
        templateUrl: 'templates/template2.html',
        controller: 'templateAppController'
  })
  </code></pre>
  
  <p>the parameter is lost when I go back to the previous template. this is my problem</p>