fix internal links using ERB