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:
parent
04288c14ff
commit
d1632c1dbd
3 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue