Fix related link edit pagination.

$id arg wasn't being preserved on pagination causing a fatal error.
Modified the template to just do the same thing that
edit_related_media.html does.