2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

FIX: new-topic URL should survive login redirection

This commit is contained in:
Arpit Jalan 2015-06-14 20:24:47 +05:30
parent 04288c14ff
commit d1632c1dbd
3 changed files with 4 additions and 1 deletions

View file

@ -72,6 +72,7 @@ class StaticController < ApplicationController
uri.path !~ /\./
destination = uri.path
destination = "#{uri.path}?#{uri.query}" if uri.path =~ /new-topic/
end
rescue URI::InvalidURIError
# Do nothing if the URI is invalid