Duolith docs

Errors while checking a page

E0170 Link to a refused scheme

Message scheme: is not an address a link may have

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

An href is a path in the app or an http, https, mailto, tel or sms address, written as text (href="...") or as one string in braces (href={"..."}). Any other scheme, such as javascript:, data: or file:, would run code or show content the app did not make when the link is pressed, and on a phone would hand the system an address no app should open. The web runtime, the native engine and both shells refuse the same addresses when they are built from data (decisions 0040 and 0141).

How to fix it

Link to a path such as /settings, or to an http, https, mailto, tel or sms address; to run code when something is pressed, use on:press.

In a terminal

duolith explain E0170

Mentioned in