@@ -40,8 +40,8 class SearchController < ApplicationController | |||
|
40 | 40 | begin; offset = params[:offset].to_time if params[:offset]; rescue; end |
|
41 | 41 | |
|
42 | 42 | # quick jump to an issue |
|
43 |
if @question.match(/^#?(\d+)$/) && Issue.visible.find_by_id( |
|
|
44 | redirect_to :controller => "issues", :action => "show", :id => $1 | |
|
43 | if (m = @question.match(/^#?(\d+)$/)) && (issue = Issue.visible.find_by_id(m[1].to_i)) | |
|
44 | redirect_to issue_path(issue) | |
|
45 | 45 | return |
|
46 | 46 | end |
|
47 | 47 |
General Comments 0
You need to be logged in to leave comments.
Login now