title: Simple example of JQuery Address to manage application state
body: <p>I'm using the jQuery Address library to re-write my URL depending on what the user is doing in the page. The intention is to allow users to bookmark pages and come back later. The page never refreshes as all server interaction is done via ajax.</p>
  
  <p>jQuery Address is writing URLs like this:</p>
  
  <p><a href="http://localhost:9000/#/u/scott_tiger" rel="nofollow">http://localhost:9000/#/u/scott_tiger</a></p>
  
  <p>I need a to set up a route in Play to be able to route that request through to the appropriate controller. So I set this up:</p>
  
  <pre><code>GET     /#/u/{username}                Controller.showUser
  </code></pre>
  
  <p>This doesn't work though, the route definition gets ignored. I've tried loads of things such as trying to escape the "#" and replacing it with a variable that I've populated with Character.toString(35). None of this works.</p>
  
  <p>Does anyone know how I can <strike>either define the route properly or</strike> get jQuery Address not to write the "#".</p>
  
  <p>EDIT: The "#" doesn't get sent to the server does it. Doh! OK, question is revised.</p>