From 700a00808f82d51b9b1ef9bc4533d925fbe1a140 Mon Sep 17 00:00:00 2001 From: skywalker512 Date: Sun, 17 Jun 2018 10:39:44 +0800 Subject: [PATCH] remove slug --- core/controllers/ETConversationController.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/controllers/ETConversationController.class.php b/core/controllers/ETConversationController.class.php index a4ee8d7..3108596 100644 --- a/core/controllers/ETConversationController.class.php +++ b/core/controllers/ETConversationController.class.php @@ -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));