Fixes #5022 not setting forward on ajax calls for walled garden