Add test for browser redirect
Merge pull request #2824 from cleishm/browser-redirect-x-forwarded

Add test for browser redirect