preactjs/preact-router

Problems with link anchors

Offen

#260 geöffnet am 10.01.2018

 (15 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (150 Forks)github user discovery
has fixhelp wanted

Repository-Metriken

Stars
 (1.053 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Whenever I click on a anchor link (for example 'href="#123"'), this

addEventListener('popstate', function () {
				routeTo(getCurrentUrl());
			});

fires and reloads the according route component, what some-have screws up the anchor and anyways is redundant.

Contributor Guide