Improves url parsing on the extension side

Fixes file download permissions