pub fn navigate_on_anchor_click(
clicks: MessageReader<'_, '_, ClickEvent>,
anchors: Query<'_, '_, &Anchor>,
host_follows: Option<Res<'_, HostFollowsLinks>>,
)Expand description
Declarative navigation: a click on a spawned <a href> navigates the
active page. The anchor is a real element; on the web target it is a real
DOM <a href>, and under [web] navigation = "soft" the browser’s own
anchor navigation is prevented so that this system’s swap is what the
click ends at. A host holding HostFollowsLinks follows the link
itself, and the click raises nothing here.