Update media.php

Fix links in gallery behavior