Fixed bug where link url would be too long in detail view