Fixes for redirect from Facebook & Twitter