From 49d03cf14e43fbf372fed93e24d408de2127cbef Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 29 Jul 2014 16:04:28 +1000 Subject: [PATCH] FEATURE: support for /t/1234 --- app/controllers/topics_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index 35ddb994230..38f207f455c 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -50,7 +50,7 @@ class TopicsController < ApplicationController discourse_expires_in 1.minute - redirect_to_correct_topic && return if slugs_do_not_match + redirect_to_correct_topic && return if slugs_do_not_match || (!request.xhr? && params[:slug].nil?) track_visit_to_topic