title: How to change a URL in the Ember.js router before a route is assigned?
body: <p>My Ember.js app requires backwards compatibility for links that went to specific file extensions. (i.e. .pdf)  In other words, I an example link like this, to return the PDF:</p>
  
  <p><a href="http://www.example.com/docs/my.pdf" rel="nofollow">http://www.example.com/docs/my.pdf</a></p>
  
  <p>I'm trying to preprocess the URL to remove the .pdf before the Ember.js Router assigns a Route to it, by taking a substring, and assigning it back as the URL to process:</p>
  
  <p><a href="http://www.example.com/docs/my" rel="nofollow">http://www.example.com/docs/my</a></p>
  
  <p>Obviously, getting the substring is trivial, but I don't know how to inject the updated URL back into the Ember.js Router.</p>