Merge pull request #671 from liuchuangww/user

Fix redirect
Merge pull request #672 from liuchuangww/user

Fix redirect
Fix for cache flush
Merge branch 'user' of https://github.com/pi-engine/pi into user
Fix profile