title: get current url odoo from javascript
body: <p>what's wrong with my code, I want to get current url from JavaScript and I keep all url in session:</p>
  
  <p>controller.py:</p>
  
  <pre><code>class MyController(http.Controller): 
      @http.route(['/action_set_current_url/&lt;string:url&gt;'], type='json', auth="public")
      def set_current_url(self, url, **post):
       request.session['my_current_url'] = url
       return {"my_current_url":my_current_url}
  </code></pre>
  
  <p>i call this function on JavaScript code:</p>
  
  <pre><code>$(window).on('hashchange', function(e){
         var url=window.location.href 
         openerp.jsonRpc("/action_set_current_url/", 'call',url)
  });
  </code></pre>
  
  <p>           </p>
  
  <p>and i want to get it in my model using:</p>
  
  <pre><code>current_url = http.request.session.get('my_current_url')
  </code></pre>
  
  <p>but i got nothing!! 
  thanks</p>