Added fix for facebook appending characters to url after login