Skip to content
Open
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
9 changes: 5 additions & 4 deletions docs/mini-apps/features/links.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Avoid using direct HTML links (`<a href="">`, `<Link href="">`) or static URLs i
Use `sdk.actions.openUrl()` to safely open external websites in the client's in-app browser:

```typescript App.tsx
import { sdk } from '@@farcaster/miniapp-sdk';
import { sdk } from '@farcaster/miniapp-sdk';

// Correct: Use SDK action
const openExternalSite = () => {
Expand Down Expand Up @@ -67,7 +67,7 @@ Before implementing any navigation or linking functionality:
When using features that may not be supported in all clients:

```javascript App.tsx
import { sdk } from '@@farcaster/miniapp-sdk';
import { sdk } from '@farcaster/miniapp-sdk';

const handleExternalLink = (url) => {
try {
Expand All @@ -79,6 +79,7 @@ const handleExternalLink = (url) => {
};
```


### 3. Avoid Client-Specific URLs

Don't hardcode URLs specific to particular clients (like Warpcast URLs). Instead, use SDK actions that work across all supported clients.
Expand All @@ -88,7 +89,7 @@ Don't hardcode URLs specific to particular clients (like Warpcast URLs). Instead
### Navigation Buttons

```javascript NavigationComponent.tsx
import { sdk } from '@@farcaster/miniapp-sdk';
import { sdk } from '@farcaster/miniapp-sdk';

const NavigationComponent = () => {
const handleExternalLink = () => {
Expand Down Expand Up @@ -118,7 +119,7 @@ const NavigationComponent = () => {
### Conditional Navigation

```javascript ConditionalNavigation.tsx
import { sdk } from '@@farcaster/miniapp-sdk';
import { sdk } from '@farcaster/miniapp-sdk';

const ConditionalNavigation = () => {
const context = sdk.context;
Expand Down
2 changes: 1 addition & 1 deletion docs/mini-apps/resources/resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Production-ready code repositories that you can clone and deploy immediately.
<Card
title="Full Mini Demo"
icon="github"
href="https://github.com/base/demos/tree/master/minikit/full-mini-demo"
href="https://github.com/base/demos/tree/master/minikit/mini-app-full-demo"
>
A comprehensive showcase demonstrating the complete range of MiniKit capabilities and Base ecosystem integrations.
</Card>
Expand Down