add link_to_function to fix #1132
Merge pull request #1138 from concerto/link-to-function

add link_to_function to fix #1132