preactjs/preact-router

Problems with link anchors

Open

#260 ouverte le 10 janv. 2018

Voir sur GitHub
 (15 commentaires) (0 réactions) (0 assignés)JavaScript (152 forks)github user discovery
has fixhelp wanted

Métriques du dépôt

Stars
 (1 055 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur