mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: more user API flow, support key creation
This commit is contained in:
parent
0b334cdf74
commit
b7cea24d76
5 changed files with 80 additions and 19 deletions
|
@ -81,7 +81,7 @@ class StaticController < ApplicationController
|
|||
uri.path !~ /\./
|
||||
|
||||
destination = uri.path
|
||||
destination = "#{uri.path}?#{uri.query}" if uri.path =~ /new-topic/ || uri.path =~ /new-message/
|
||||
destination = "#{uri.path}?#{uri.query}" if uri.path =~ /new-topic/ || uri.path =~ /new-message/ || uri.path =~ /user-api-key/
|
||||
end
|
||||
rescue URI::InvalidURIError
|
||||
# Do nothing if the URI is invalid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue