code: Fix "copying url to clipboard" does not work

This is regression that introduced by 5a9c5f4.