Bug fix in the table layout templates

Updated the table layout templates with a Ajax call to retrieve the
correct web url for the current item