preactjs/preact-router

Problems with link anchors

Open

#260 aperta il 10 gen 2018

Vedi su GitHub
 (15 commenti) (0 reazioni) (0 assegnatari)JavaScript (152 fork)github user discovery
has fixhelp wanted

Metriche repository

Star
 (1055 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor