The Two-Link Problem on Mobile Bios
Look at the profile bios of most mobile apps on Instagram, TikTok, Twitter/X, and YouTube. You will almost always see something like this:
Download our app! iOS: https://apps.apple.com/app/id123456789 Android: https://play.google.com/store/apps/details?id=com.app
This approach causes friction:
How Dynamic OS Routing Works
Dynamic routing replaces multiple platform links with a single, intelligent short link. When a visitor clicks your link, the server evaluates the incoming User-Agent header before issuing an HTTP redirect:
/--> iOS (iPhone / iPad) ---> Apple App Store
Incoming Short Link ---> Android Device -------> Google Play Store
\--> Desktop / Other ------> Web App Landing PageHere is the exact logic running at the edge:
const userAgent = req.headers.get("user-agent") || "";
const isIOS = /iPhone|iPad|iPod/i.test(userAgent);
const isAndroid = /Android/i.test(userAgent);
if (isIOS && link.iosUrl) {
return NextResponse.redirect(link.iosUrl, 307);
}
if (isAndroid && link.androidUrl) {
return NextResponse.redirect(link.androidUrl, 307);
}
// Fallback to web landing page for desktop visitors
return NextResponse.redirect(link.destinationUrl, 307);Because this evaluation takes under 5 milliseconds on modern edge runtimes, the visitor experiences no delay. Their device opens the native store app immediately.
Key Benefits for Mobile Developers
Setting Up Smart App Routing in TLink
Your single link now routes every user to the optimal platform automatically.