convert links to static assets to dynamic
fix misuse of static function in pact
Merge pull request #3765 from dimagi/dynamic-links

convert links to static assets to dynamic