fixed bug when admin doesn't has edit route.
Merge pull request #1970 from aitboudad/patch-2

[Search Result]  fixed bug when admin doesn't has edit route.