[desktop] Polish permissions based on URL

Because of some special URL formats, some urls trigger a missing permission.