Skip to content

Commit

Permalink
Fix: decode the resource type from URI
Browse files Browse the repository at this point in the history
After updating js-routes >= 2.0.0, the rsource type is URI-encoded.
  • Loading branch information
Aleksei Burlakov committed Sep 7, 2024
1 parent b195634 commit 42b1789
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hawk/app/controllers/agents_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def show
else
@name = params[:id]
end
@name = CGI.unescape(@name)
@agent = Util.get_metadata_hash(@name)

if @agent
Expand Down

0 comments on commit 42b1789

Please sign in to comment.