defunkt/jquery-pjax — pull request #113 by axiak (2012-03-29 19:12:06+00:00)
Title: Added hook to rewrite urls if sent through pjax

I have a site that has its templates compiled ahead of time, served via nginx. I'd like to use pjax and have the component (pjax'd) templates at a different URL than the default link hrefs, decided by a rule.

This proposal is to add a urlMapper option that takes the original URL and returns a new URL. It is only called if pjax is going to be initiated.