improved link handling for pdf assignments