Skip to content

Commit

Permalink
remove slug
Browse files Browse the repository at this point in the history
  • Loading branch information
skywalker512 committed Jun 17, 2018
1 parent dca74ae commit 700a008
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/controllers/ETConversationController.class.php
Expand Up @@ -181,10 +181,10 @@ public function action_index($conversationId = false, $year = false, $month = fa
$this->canonicalURL = URL($url, true);

// If the slug in the URL is not the same as the actual slug, redirect.
$slug = slug($conversation["title"]);
if ($slug and (strpos($conversationId, "-") === false or substr($conversationId, strpos($conversationId, "-") + 1) != $slug)) {
redirect(URL($url), 301);
}
//$slug = slug($conversation["title"]);
//if ($slug and (strpos($conversationId, "-") === false or substr($conversationId, strpos($conversationId, "-") + 1) != $slug)) {
// redirect(URL($url), 301);
//}

// Push onto the top of the naviagation stack.
$this->pushNavigation("conversation/".$conversation["conversationId"], "conversation", URL($url));
Expand Down

0 comments on commit 700a008

Please sign in to comment.