For @NAMESPACE@ mode, use current page as a namespace

Otherwise we would get the listing of all the media in upper namespace,
which is not a desirable behavior