Re-build the link of title to have the correct link, that takes the PURL into account

#3944 

On ``http://local/os_make/www/john/search/site/john`` the links where to for example

Before patch:
``http://local/os_make/www/links/jfk-wikipedia-page``

After patch:
``http://local/os_make/www/john/links/jfk-wikipedia-page``