Added links to subcategory pages

Hello.

Currently categories from CMS Pages rendered with '#' in href attributes. Here's fix for this, I've tested it on my installation.