Fix filters functionality

pull/3018/head
Victor Baranov 5 years ago
parent 97a50f3da1
commit ac63f1bb29
  1. 9
      apps/block_scout_web/lib/block_scout_web/checksum_address.ex

@ -31,7 +31,14 @@ defmodule BlockScoutWeb.ChecksumAddress do
if checksummed_hash != id do if checksummed_hash != id do
conn = %{conn | params: Map.merge(conn.params, %{param_name => checksummed_hash})} conn = %{conn | params: Map.merge(conn.params, %{param_name => checksummed_hash})}
new_path = String.replace(conn.request_path, id, checksummed_hash) path_with_checksummed_address = String.replace(conn.request_path, id, checksummed_hash)
new_path =
if conn.query_string != "" do
path_with_checksummed_address <> "?" <> conn.query_string
else
path_with_checksummed_address
end
conn conn
|> Controller.redirect(to: new_path) |> Controller.redirect(to: new_path)

Loading…
Cancel
Save