Feature Test Links

Feature Test Links Link to heading

Every row below is rendered directly from app/linkrouter-rules-examples.json — the same fixtures the unit-test suite consumes — so the page is a 1:1 map of what the router should do: Input (what you open) → Expected Output (what the target browser should show).

Setup — enable the relevant feature before testing it:

  • Shortener hosts and Host rewrites ship disabled (opt-in) — flip the specific host ON in Settings first.
  • Rules and Redirect formats must exist (add them, or keep) in Settings.
  • Query-param filters ship enabled by default.

See How to test for a reliable workflow.

How to test Link to heading

The links below exercise LinkRouter end-to-end. Because LinkRouter is your default browser, a bare in-browser tap goes straight through it, which is exactly what we want to observe — but it leaves nothing to compare against the Expected Output shown in this page. The reliable workflow:

  1. Open the link in an app that doesn’t handle browsing itself (a messaging app’s share target, a notes / todo app, or a PDF). That way you watch the dispatch in real time and the target browser’s result appears alongside this page.
  2. Print this page to a PDF, or just use your browser’s own Ctrl/Cmd+Print. Then read it on the phone and tap the links straight from the document.

Print to PDF

  1. Open the Input link and confirm the target browser opened exactly the Expected Output shown in the adjacent cell.

Rules

PatternInputExpected Output
twitter.comhttps://twitter.com/elmo/status/2068016008086872413org.mozilla.firefox
twitter.comhttps://twitter.com/elmoorg.mozilla.firefox
*.evil.comhttps://pure.evil.comSTOP
evil.comhttps://evil.comSTOP

AMP cache unwrap

NameInputExpected Output
AMP cache unwraphttps://example-com.cdn.ampproject.org/c/s/example.com/news/story?id=42https://example.com/news/story?id=42

Redirect formats

NamePatternInputExpected Output
Google wwwwww.google.com/urlhttps://www.google.com/url?q=https%3A%2F%2Fexample.com%2Fpagehttps://example.com/page
Googlegoogle.com/urlhttps://google.com/url?q=https%3A%2F%2Fexample.com%2Fxhttps://example.com/x
Facebook (redirect.php)facebook.com/redirect.phphttps://www.facebook.com/redirect.php?u=https%3A%2F%2Fexample.comhttps://example.com
Facebook (l.php)l.facebook.com/l.phphttps://l.facebook.com/l.php?u=https%3A%2F%2Fexample.comhttps://example.com
Mailchimp/Mandrill*.email.mandrillapp.comhttps://abc5.email.mandrillapp.com/?lc=https%3A%2F%2Fexample.comhttps://example.com

Query-param filters

ParamHost scopeInputExpected Output
original_urifacebook.comhttps://www.facebook.com/share/r/xyz/?original_uri=https%3A%2F%2Fexample.com%2Fp&utm_source=nativehttps://www.facebook.com/share/r/xyz/?utm_source=native
featureyoutube.comhttps://www.youtube.com/watch?v=dQw4w9WgXcQ&feature=sharehttps://www.youtube.com/watch?v=dQw4w9WgXcQ
siyoutube.comhttps://www.youtube.com/watch?v=dQw4w9WgXcQ&si=Zz9https://www.youtube.com/watch?v=dQw4w9WgXcQ
igshidinstagram.comhttps://www.instagram.com/reel/BgSlRglAKBn/?igshid=1a2b3c&utm_source=ig_webhttps://www.instagram.com/reel/BgSlRglAKBn/?utm_source=ig_web
igsiinstagram.comhttps://www.instagram.com/p/BgSlRglAKBn/?igsi=77https://www.instagram.com/p/BgSlRglAKBn/
_ttiktok.comhttps://www.tiktok.com/@tonononotonononon1/video/7590307485039283474?_t=88233&utm_source=copyhttps://www.tiktok.com/@tonononotonononon1/video/7590307485039283474?utm_source=copy
mc_cid(any)https://example.com/pricing?mc_cid=d1&utm_source=dlhttps://example.com/pricing?utm_source=dl
mc_eid(any)https://example.com/pricing?mc_eid=e2&utm_source=dlhttps://example.com/pricing?utm_source=dl
sharer_id(any)https://example.com/page?sharer_id=42&utm_source=sharehttps://example.com/page?utm_source=share
fbid(any)https://example.com/page?fbid=abc&utm_source=sharehttps://example.com/page?utm_source=share
fbclid(any)https://example.com/page?fbclid=xyz&utm_source=sharehttps://example.com/page?utm_source=share
msclkid(any)https://example.com/page?msclkid=abc&utm_source=sharehttps://example.com/page?utm_source=share
gclsrc(any)https://example.com/page?gclsrc=aw&utm_source=dlhttps://example.com/page?utm_source=dl
gclid(any)https://example.com/page?gclid=abc&utm_source=dlhttps://example.com/page?utm_source=dl
utm_content(any)https://example.com/page?utm_content=abc&utm_source=dlhttps://example.com/page?utm_source=dl
utm_term(any)https://example.com/page?utm_term=abc&utm_source=dlhttps://example.com/page?utm_source=dl
utm_campaign(any)https://example.com/page?utm_campaign=abc&utm_source=dlhttps://example.com/page?utm_source=dl
utm_medium(any)https://example.com/page?utm_medium=abc&utm_source=dlhttps://example.com/page?utm_source=dl
utm_source(any)https://example.com/page?utm_source=dl&utm_campaign=xhttps://example.com/page?utm_campaign=x
stkninstagram.comhttps://www.instagram.com/explore/tags/web/?stkn=992https://www.instagram.com/explore/tags/web/

Shortener hosts

NameHostPath prefixInputExpected Output
Facebook share linkswww.facebook.com/share/https://www.facebook.com/share/r/19QBkCyWfA/https://www.facebook.com/reel/1444921104160657/
bit.lybit.ly—https://bitly.com/98K8eHhttps://www.youtube.com/watch?v=dQw4w9WgXcQ
Facebook Me - onon.fb.me—https://on.fb.me/1F1TcFXhttps://facebook.com/iheartradio
Googleshare.google—https://share.google/KkoDIfmzpmsc1W2AXhttps://www.youtube.com/shorts/IHVDpLvbiUw

Host rewrites

Match hostTarget hostInputExpected Output
nytimes.comarchive.mdhttps://www.nytimes.com/2026/09/16/us/merriam-webster-new-words-looksmaxxing-yacht-rock.htmlhttps://archive.md/www.nytimes.com/2026/09/16/us/merriam-webster-new-words-looksmaxxing-yacht-rock.html
geocities.comweb.archive.org/web/*/http://geocities.com/SiliconValley/http://web.archive.org/web/*/geocities.com/SiliconValley/
www.tiktok.comwww.seetiktok.comhttps://www.tiktok.com/@pareidoliate/video/7685839018021473566https://www.seetiktok.com/@pareidoliate/video/7685839018021473566
twitter.comflurbx.comhttps://twitter.com/elmo/status/2068016008086872413https://flurbx.com/elmo/status/2068016008086872413
x.comflurbx.comhttps://x.com/elmo/status/2068016008086872413https://flurbx.com/elmo/status/2068016008086872413