No. That would be published as /media/media-folder/
.
But another interesting point is that your method really depends upon .GetPage "section" "media"
If the rendering of sections is disabled with disabledKinds
in config the only thing that is left working is that logos-resize
shortcode.
Anyway, good workaround @talves . I might use it at some point if I need it. Thanks!