diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-11 10:26:48 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-11 10:26:48 -0700 |
commit | cef7ca9cf27dc7bcdbc92e754cfe9ae3a30ae3b0 (patch) | |
tree | af0819996ff2b62b33aeb86311a2911644aa68c2 /modules/tag/models | |
parent | 34a71e7cd34bc184abbf9060ec4b316ba1c66bc5 (diff) |
Change tag url form to be /tag/{name} from /tags/show/{id}. This is
a much friendlier url format. Fixes ticket #1363.
Diffstat (limited to 'modules/tag/models')
-rw-r--r-- | modules/tag/models/tag.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/models/tag.php b/modules/tag/models/tag.php index e8bd69c5..269a0f39 100644 --- a/modules/tag/models/tag.php +++ b/modules/tag/models/tag.php @@ -124,7 +124,7 @@ class Tag_Model extends ORM { * @param string $query the query string (eg "page=3") */ public function url($query=null) { - $url = url::site("tags/show/$this->id"); + $url = url::site("tag/{$this->name}"); if ($query) { $url .= "?$query"; } |