fix User::getReturnUrl() after #2501
Merge pull request #2804 from Ryadnov/patch-1

fix User::getReturnUrl() after #2501