Skip to content

fix(dynamiclinks): Resolve maps.app.goo.gl short links via redirect - #337

Closed
brummilab wants to merge 1 commit into
MorpheApp:devfrom
brummilab:fix/329-maps-short-links
Closed

brummilab wants to merge 1 commit into
MorpheApp:devfrom
brummilab:fix/329-maps-short-links

Conversation

@brummilab

Copy link
Copy Markdown

Fixes #329

DynamicLinksService.getDynamicLink() returned null for Google Maps short links (https://maps.app.goo.gl/...), because the datamixer API does not resolve them. Google Maps then drops the link without a message, for example routes sent with "Send to car".

Changes:

  • New DynamicLinkUtils.resolveRedirectShortLink(): requests the short link without following redirects and returns the https Location target. It follows at most 5 short-link hops, with a 10 s timeout.
  • getDynamicLink uses this fallback only when the datamixer response has no intentData and the link is an https link on goo.gl / maps.app.goo.gl. All other links behave as before.

Builds (Debug and Release, including lint) pass. Not tested on a device yet.

The datamixer API does not resolve plain redirect short links such as
maps.app.goo.gl, so getDynamicLink returned null and Google Maps dropped
shared routes. Fall back to reading the redirect target for these hosts.

Fixes #329

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011yUEQwgLML4GnnJoy2retw
@brummilab brummilab closed this by deleting the head repository Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants