fixed broken links /project/project/search /req/req/1 req/req/2

The problem with the request links was the scope of the T.
The problem with search was that truncate function was not defined. It was removed in the commit 

https://github.com/flavour/eden/commit/350df104e0d62741122db70adb4f4ae457ffb5ca

I don't know why it was removed so i re-added the function.