Skip to content

Fix crash on non-HTTP scheme links#205

Open
leonvogt wants to merge 1 commit into
hotwired:mainfrom
leonvogt:fix-crash-on-non-http-links
Open

Fix crash on non-HTTP scheme links#205
leonvogt wants to merge 1 commit into
hotwired:mainfrom
leonvogt:fix-crash-on-non-http-links

Conversation

@leonvogt

Copy link
Copy Markdown
Contributor

Tapping a mailto:, tel: or custom-scheme link crashes with MalformedURLException: unknown protocol.

Since cb80529 (#203), Navigator.getRouteDecision() eagerly resolves path-config properties for the proposed location, and PathConfigurationData.path() parses it with java.net.URL. But only supports http, so it throws before any RouteDecisionHandler runs.

Reproduce: Click on a <a href="mailto:me@domain.com">me@domain.com</a> link.

Verified in the Demo app. 1.2.8 works and 1.3.0 crashes. This PR would fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant