jQuery PJAX follows any redirect just like you're used to. The only difference is that it updates the address bar with the URL of the initial request.
To make this work, you can add pass a X-PJAX-URL header to the final request.
Sample in Rails:
class HomepageController < ApplicationController def index if request.xhr? if request.url # Check if we are redirected response.headers['X-PJAX-URL'] = request.url end render :layout => false end end end
This will make sure the browser's address bar gets updated to the final URL after the redirect instead of the initial link.