diff --git a/CHANGELOG.md b/CHANGELOG.md index b92a1b4953..383e5d7a49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,7 @@ ### Fixes - [#6390](https://github.com/blockscout/blockscout/pull/6390) - Fix transactions responses in API v2 -- [#6357](https://github.com/blockscout/blockscout/pull/6357) - Fix definitions of NETWORK_PATH, API_PATH, SOCKET_ROOT: process trailing slash +- [#6357](https://github.com/blockscout/blockscout/pull/6357), [#6409](https://github.com/blockscout/blockscout/pull/6409) - Fix definitions of NETWORK_PATH, API_PATH, SOCKET_ROOT: process trailing slash - [#6338](https://github.com/blockscout/blockscout/pull/6338) - Fix token search with space - [#6329](https://github.com/blockscout/blockscout/pull/6329) - Prevent logger from truncating response from rust verifier service in case of an error - [#6309](https://github.com/blockscout/blockscout/pull/6309) - Fix read contract bug and change address tx count diff --git a/apps/block_scout_web/lib/block_scout_web/controller.ex b/apps/block_scout_web/lib/block_scout_web/controller.ex index abdc899865..7776342ea9 100644 --- a/apps/block_scout_web/lib/block_scout_web/controller.ex +++ b/apps/block_scout_web/lib/block_scout_web/controller.ex @@ -49,6 +49,13 @@ defmodule BlockScoutWeb.Controller do if path =~ network_path do path else + network_path = + if String.starts_with?(path, "/") do + String.trim_trailing(network_path, "/") + else + network_path + end + network_path <> path end else