Fixed category url redirection in the index page

Fixed category url redirection in the index page. The original was rendering the name of the category instead of the actual url.