---
title: AppProxyLink
description: |-
Sets up an `` HTML element that works when rendered behind an app proxy.
Supports any properties accepted by the `` HTML element.
api_version: v1 latest
api_name: shopify-app-react-router
source_url:
html: >-
https://shopify.dev/docs/api/shopify-app-react-router/latest/app-proxy-components/appproxylink
md: >-
https://shopify.dev/docs/api/shopify-app-react-router/latest/app-proxy-components/appproxylink.md
---
# AppProxyLink
Sets up an `` HTML element that works when rendered behind an app proxy.
Supports any properties accepted by the `` HTML element.
Examples
### Examples
* #### Link to a different route
##### Description
Use an \`AppProxyLink\` within an \`AppProxyProvider\` to link to a different proxied route.
##### /app/routes/\*\*\\/\*.ts
```typescript
import {authenticate} from '~/shopify.server';
import {AppProxyProvider, AppProxyLink} from '@shopify/shopify-app-react-router/react';
export async function loader({ request }) {
await authenticate.public.appProxy(request);
return json({ appUrl: process.env.SHOPIFY_APP_URL });
}
export default function App() {
const { appUrl } = useLoaderData();
return (
Link to another route
);
}
```
## Related
[Authenticating app proxy requests. - authenticate.public.appProxy](https://shopify.dev/docs/api/shopify-app-react-router/authenticate/public/app-proxy)
[Enable JavaScript in pages loaded through app proxies. - AppProxyProvider](https://shopify.dev/docs/api/shopify-app-react-router/app-proxy-components/appproxyprovider)