mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
Merge pull request #3550 from techAPJ/patch-1
FIX: new-topic URL should survive login redirection
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user