bugfix getMediaForUrl
Merge branch 'master' into 2.2