fix links to media directory