Fix redirection of /next/ urls internally
Fix redirection of /next/ urls internally

Reviewed By: jknoxville, kassens

Differential Revision: D27262113

fbshipit-source-id: 4862c5ab11a9f5ccf2e98e2a8b9af048ac55575e

yungsters/relay,atxwebs/relay,xuorig/relay,facebook/relay,atxwebs/relay,facebook/relay,facebook/relay,kassens/relay,kassens/relay,xuorig/relay,kassens/relay,xuorig/relay,josephsavona/relay,wincent/relay,voideanvalue/relay,josephsavona/relay,wincent/relay,voideanvalue/relay,xuorig/relay,kassens/relay,josephsavona/relay,atxwebs/relay,facebook/relay,voideanvalue/relay,wincent/relay,voideanvalue/relay,facebook/relay,atxwebs/relay,kassens/relay,xuorig/relay,facebook/relay,wincent/relay,kassens/relay,wincent/relay,voideanvalue/relay,wincent/relay,voideanvalue/relay,yungsters/relay,yungsters/relay,xuorig/relay