Fix QQ login bugs

1. use {{url | safe}} to get the correct url for login.
2. remove the code when redirecting from other pages to scrawl page.