aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-04 14:47:24 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-04 14:47:24 +0000
commitfa1b508915dd3df4fe51629d031244eddb963ff4 (patch)
tree6393c59cbcdaa33add7666cf3d0ad259c5c4c660
parentd820e40827d3d3227aa21975b2d6c0e394633e80 (diff)
downloadelgg-fa1b508915dd3df4fe51629d031244eddb963ff4.tar.gz
elgg-fa1b508915dd3df4fe51629d031244eddb963ff4.tar.bz2
Tag URLs now conform to the microformats specification. Fixes #729
git-svn-id: https://code.elgg.org/elgg/trunk@2642 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--CONTRIBUTORS.txt2
-rw-r--r--htaccess_dist2
-rw-r--r--views/default/output/tags.php2
3 files changed, 5 insertions, 1 deletions
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index ac9bed124..cf6bdd406 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -24,3 +24,5 @@ Diego Andrés Ramírez Aragón <diego@somosmas.org>
Corporación Somos Más
Cash Costello <cash.costello@gmail.com>
+
+Jon Kemp \ No newline at end of file
diff --git a/htaccess_dist b/htaccess_dist
index 678126332..0038689fe 100644
--- a/htaccess_dist
+++ b/htaccess_dist
@@ -125,4 +125,6 @@ RewriteRule ^pg\/([A-Za-z\_\-]+)$ engine/handlers/pagehandler.php?handler=$1
RewriteRule xml-rpc.php engine/handlers/xml-rpc_handler.php
RewriteRule mt/mt-xmlrpc.cgi engine/handlers/xml-rpc_handler.php
+RewriteRule ^tag/([A-Za-z0-9\+-]+)/?$ search/?tag=$2
+
</IfModule> \ No newline at end of file
diff --git a/views/default/output/tags.php b/views/default/output/tags.php
index 3865e23ad..70e11ac82 100644
--- a/views/default/output/tags.php
+++ b/views/default/output/tags.php
@@ -46,7 +46,7 @@
$type = "";
}
if (is_string($tag)) {
- $tagstr .= "<a href=\"{$vars['url']}search/?tag=".urlencode($tag) . "{$type}{$subtype}{$object}\">{$tag}</a>";
+ $tagstr .= "<a rel=\"tag\" href=\"{$vars['url']}tag/".urlencode($tag) . "{$type}{$subtype}{$object}\">{$tag}</a>";
}
}
echo $tagstr;