From 42b178931d2f67c612d759487a2ac2a1338ee5cd Mon Sep 17 00:00:00 2001 From: Aleksei Burlakov Date: Sat, 7 Sep 2024 16:00:36 +0200 Subject: [PATCH] Fix: decode the resource type from URI After updating js-routes >= 2.0.0, the rsource type is URI-encoded. --- hawk/app/controllers/agents_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/hawk/app/controllers/agents_controller.rb b/hawk/app/controllers/agents_controller.rb index de320b60d..230c6cb30 100644 --- a/hawk/app/controllers/agents_controller.rb +++ b/hawk/app/controllers/agents_controller.rb @@ -22,6 +22,7 @@ def show else @name = params[:id] end + @name = CGI.unescape(@name) @agent = Util.get_metadata_hash(@name) if @agent