diff --git a/actions/tag.php b/actions/tag.php index 751e8dcec5..ccd2c7fbe0 100644 --- a/actions/tag.php +++ b/actions/tag.php @@ -34,7 +34,7 @@ class TagAction extends ManagedAction $this->tag = common_canonical_tag($taginput); if (empty($this->tag)) { - common_redirect(common_local_url('publictagcloud'), 301); + throw new ClientException(_('No valid tag data.')); } // after common_canonical_tag we have a lowercase, no-specials tag string