Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Fix broken links #89

Merged
merged 2 commits into from
Aug 11, 2023
Merged
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
2 changes: 1 addition & 1 deletion lib/starknet_explorer_web/live/block_index_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule StarknetExplorerWeb.BlockIndexLive do
<div>
<div class="list-h">Number</div>
<%= live_redirect(to_string(block["block_number"]),
to: "/block/#{block["block_number"]}"
to: ~p"/#{@network}/block/#{block["block_hash"]}"
) %>
</div>
<div class="col-span-2">
Expand Down
10 changes: 8 additions & 2 deletions lib/starknet_explorer_web/live/pages/home/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ defmodule StarknetExplorerWeb.HomeLive.Index do
<div>
<div class="table-header">
<div class="table-title">Latest Blocks</div>
<a href="/blocks" class="text-gray-300 hover:text-white transition-all duration-300">
<a
href={~p"/#{@network}/blocks"}
class="text-gray-300 hover:text-white transition-all duration-300"
>
<div class="flex gap-2 items-center">
<div>View all blocks</div>
<img src={~p"/images/arrow-right.svg"} />
Expand Down Expand Up @@ -170,7 +173,10 @@ defmodule StarknetExplorerWeb.HomeLive.Index do
<div>
<div class="table-header">
<div class="table-title">Latest Transactions</div>
<a href="/transactions" class="text-gray-300 hover:text-white transition-all duration-300">
<a
href={~p"/#{@network}/transactions"}
class="text-gray-300 hover:text-white transition-all duration-300"
>
<div class="flex gap-2 items-center">
<div>View all transactions</div>
<img src={~p"/images/arrow-right.svg"} />
Expand Down
Loading