Merge pull request #3018 from poanetwork/vb-fix-filtering

Fix filters functionality
pull/3019/head
Victor Baranov 5 years ago committed by GitHub
commit ad1f58a003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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
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
|> Controller.redirect(to: new_path)

Loading…
Cancel
Save