Refactoring findLatestWorkspaceByUser
Do not save the last uri if there is no redirect after login.
Merge pull request #485 from ngodfraind/doctrine-optimization

Doctrine optimization