about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTakeshi Umeda <noel.yoshiba@gmail.com>2019-02-05 23:11:11 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-02-05 15:11:11 +0100
commit5bffb53a763531f6ed1d8e87bacede3ff0938086 (patch)
treef8dc94f2f4e64ff6ad106d52200da1c612ffe7bc
parent5c873a4ed7d4abb8c684e3a8ed3cdf9383e77be5 (diff)
Fix it as tagged_request of accounts_controller is not addressable_uri (#9976)
-rw-r--r--app/controllers/accounts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb
index cbf1a8287..cad2ecf3f 100644
--- a/app/controllers/accounts_controller.rb
+++ b/app/controllers/accounts_controller.rb
@@ -116,7 +116,7 @@ class AccountsController < ApplicationController
   end
 
   def tag_requested?
-    request.path.ends_with?("/tagged/#{params[:tag]}")
+    request.path.ends_with?(Addressable::URI.parse("/tagged/#{params[:tag]}").normalize)
   end
 
   def filtered_status_page(params)