preactjs/preact-router

Problems with link anchors

Open

#260 geöffnet am 10. Jan. 2018

Auf GitHub ansehen
 (15 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (152 Forks)github user discovery
has fixhelp wanted

Repository-Metriken

Stars
 (1.055 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

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