You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolve known link-shortener URLs to their destination
When a bookmark is saved as a Google short/share link (search.app,
share.google), the crawler already follows the redirect to fetch the
real content, but the stored URL kept the opaque short link.
Overwrite the stored URL with the resolved destination, scoped to a
known-shortener allowlist and guarded by a safe-scheme check, so
ordinary redirects (http->https, tracking-param strips) never rewrite
the user's URL. Applied across all three crawl outcomes:
- HTML pages: via the browser's final URL (Phase-1 bookmarkLinks write)
- direct PDF/image links: the probe now returns its redirect target so
the asset-bookmark path stores the resolved sourceUrl
- downstream video jobs: crawlAndParseUrl returns the effective URL
Covered by unit tests (packages/shared/utils/url.test.ts) and e2e tests
that alias the nginx fixture as search.app and assert the resolved url
and sourceUrl.
Closes#2235
0 commit comments