minor fix to output correct link tag without trailing slash