Linking Table search results to dynamic pages

Thanks for your help here. Unfortunately I still get the error Maximum call stack size exceeded?