Remove the filename in the relative link.