Fix Portal > Contracts overview page links (#5541)

Fixes: DASH-487

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating references to smart contract interaction links throughout the application, simplifying the URLs to point directly to `/contracts` instead of specific interaction overview pages.

### Detailed summary
- Updated `href` in `page.tsx` from `/contracts/interact/overview` to `/contracts`.
- Changed references in `interact-blockchain/page.mdx` to point to `/contracts`.
- Modified links in `contracts/page.mdx` to `/contracts`.
- Adjusted links in `sdk.tsx` to `https://portal.thirdweb.com/contracts`.
- Updated SDK documentation links in `ipfs/page.mdx` to `/contracts`.
- Changed SDK references in `gas/page.mdx` to `/contracts`.
- Updated redirects in `redirects.mjs` for `/sdk`, `/sdk/how-it-works`, and `/sdk/getting-started` to `/contracts`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
This commit is contained in:
MananTank
2024-12-01 18:15:48 +00:00
parent e2754dfa5e
commit 393d0cfb50
9 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ const Web3SDK: ThirdwebNextPage = () => {
title="Powerful SDKs for every stack"
description="Build web3 applications that can interact with your smart contracts using our powerful SDKs and CLI."
buttonText="Get started"
buttonLink="https://portal.thirdweb.com/contracts/interact/overview"
buttonLink="https://portal.thirdweb.com/contracts"
image={require("../../public/assets/product-pages/sdk/hero.png")}
gradient="linear-gradient(147.15deg, #410AB6 30.17%, #5BFF40 100.01%)"
>
+4 -3
View File
@@ -798,9 +798,9 @@ const contractRedirects = {
"/publish/getting-started": "/contracts/publish/publish-contract",
"/publish/deployment-options": "/contracts/publish/publish-options",
"/publish/get-featured-on-explore": "/contracts/publish/overview",
"/sdk": "/contracts/interact/overview",
"/sdk/how-it-works": "/contracts/interact/overview",
"/sdk/getting-started": "/contracts/interact/overview",
"/sdk": "/contracts",
"/sdk/how-it-works": "/contracts",
"/sdk/getting-started": "/contracts",
//design documentation
"/contracts/design/Drop": "/contracts/design-docs/drop",
"/contracts/design/Marketplace": "/contracts/design-docs/marketplace",
@@ -808,6 +808,7 @@ const contractRedirects = {
"/contracts/design/Multiwrap": "/contracts/design-docs/multiwrap",
"/contracts/design/Pack": "/contracts/design-docs/pack",
"/contracts/design/SignatureDrop": "/contracts",
"/interact": "/contracts",
};
const infrastructureRedirects = {
@@ -22,7 +22,7 @@ export const metadata = createMetadata({
# Interact with the blockchain
One connected, in-app wallets can be used alongside the [Contract SDK](/contracts/interact/overview) to interact with the blockchain.
Once connected, in-app wallets can be used alongside the [Contract SDK](/contracts) to interact with the blockchain.
## Initialize the SDK With Your Wallet
@@ -198,4 +198,4 @@ const sdk = useSDK(
## Interact with your contract
For easy-to-use code snippets for your contract, view the Code Snippets on your contract's dashboard or visit the [SDK documentation](/contracts/interact/overview).
For easy-to-use code snippets for your contract, view the Code Snippets on your contract's dashboard or visit the [SDK documentation](/contracts).
+1 -1
View File
@@ -20,7 +20,7 @@ Trusted, modular smart contracts that can be deployed securely on any EVM chain.
- [Build:](/contracts/build/overview) Write your own smart contracts
- [Deploy:](/contracts/deploy/overview) Contract deployment built for any use-case
- [Publish:](/contracts/publish/overview) Publish your contracts onchain
- [Interact:](/contracts/interact/overview) Integrate smart contract interactions directly into your app
- [Interact:](/contracts) Integrate smart contract interactions directly into your app
### Templates
+1 -1
View File
@@ -7,7 +7,7 @@ Gas fees are typically paid in the currency that is native to the blockchain you
While using thirdweb is free, you will need to cover the cost of performing actions that update the blockchain's state.
This includes actions performed via the thirdweb [dashboard](https://thirdweb.com/team), our [SDKs](/contracts/interact/overview), or any of our other products, including:
This includes actions performed via the thirdweb [dashboard](https://thirdweb.com/team), our [SDKs](/contracts), or any of our other products, including:
- Deploying smart contracts
- [Lazy-minting](/glossary/lazy-minting) the metadata of your NFTs
+1 -1
View File
@@ -9,6 +9,6 @@ To secure content on IPFS forever, a node must [pin](https://docs.ipfs.tech/conc
[Learn more about how IPFS works](https://ipfs.tech/#how).
To read data from IPFS, an [IPFS Gateway](https://docs.ipfs.tech/concepts/ipfs-gateway/) is required. This allows you to access data from the IPFS protocol on browsers and other HTTP clients, such
as when building an application using our [SDK](/contracts/interact/overview).
as when building an application using our [SDK](/contracts).
Out of the box, all of our tools use [Storage](/storage) to store, pin, and retrieve data from IPFS via a gateway, currently powered by [Pinata](https://pinata.cloud/) under the hood.
+1 -1
View File
@@ -318,7 +318,7 @@ function ContractsSection() {
title="Interact"
description="Add smart contract interactions in your app"
icon={ContractInteractIcon}
href="/contracts/interact/overview"
href="/contracts"
/>
<ArticleCardIndex
title="Explore"
@@ -22,7 +22,7 @@ export const metadata = createMetadata({
# Interact with the blockchain
One connected, in-app wallets can be used alongside the [Contract SDK](/contracts/interact/overview) to interact with the blockchain.
Once connected, in-app wallets can be used alongside the [Contract SDK](/contracts) to interact with the blockchain.
## Initialize the SDK With Your Wallet