Joomla/K2 Tags Mod

Just a quick fix for a tag link issue I came across.

broken url:
domain.com/tag/two word.html

if you take the spaces in the URL and replace them with pluses (‘+’) it’ll work. For example:

fixed url:
domain.com/tag/two+word.html

tested and working on Joomla 1.5.15, with K2 2.1 and sh404sef 1.0.20_Beta – build_237

below is this file: /modules/mod_k2_tools/tmpl/tags.php
but it’s the same basic fix for the other files:
/components/com_k2/templates/default/item.php
/components/com_k2/templates/default/category_item.php

the key part is: <?php echo str_replace(' ','+',$tag->link); ?>

One thought on “Joomla/K2 Tags Mod”

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: