FEATURE: support for /t/1234

This commit is contained in:
Sam 2014-07-29 16:04:28 +10:00
parent 5d9eefbfed
commit 49d03cf14e
1 changed files with 1 additions and 1 deletions

View File

@ -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