Fixed issue with missing extension when linking a file to existing text