Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix subpath not added to transaction_controller and holder_controller #5786

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule BlockScoutWeb.Tokens.Instance.HolderController do
use BlockScoutWeb, :controller

alias BlockscoutWeb.Controller
alias BlockScoutWeb.Tokens.HolderView
alias Explorer.{Chain, Market}
alias Explorer.Chain.Address
Expand Down Expand Up @@ -61,7 +62,7 @@ defmodule BlockScoutWeb.Tokens.Instance.HolderController do
conn,
"index.html",
token_instance: token_transfer,
current_path: current_path(conn),
current_path: Controller.current_full_path(conn),
token: Market.add_price(token),
total_token_transfers: Chain.count_token_transfers_from_token_hash_and_token_id(hash, token_id)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ defmodule BlockScoutWeb.TransactionController do
"show_token_transfers.html",
exchange_rate: Market.get_exchange_rate(Explorer.coin()) || Token.null(),
block_height: Chain.block_height(),
current_path: current_path(conn),
current_path: Controller.current_full_path(conn),
show_token_transfers: true,
transaction: transaction
)
Expand Down Expand Up @@ -187,7 +187,7 @@ defmodule BlockScoutWeb.TransactionController do
conn,
"show_internal_transactions.html",
exchange_rate: Market.get_exchange_rate(Explorer.coin()) || Token.null(),
current_path: current_path(conn),
current_path: Controller.current_full_path(conn),
block_height: Chain.block_height(),
show_token_transfers: Chain.transaction_has_token_transfers?(transaction_hash),
transaction: transaction
Expand Down