preactjs/preact-router

Problems with link anchors

Open

#260 opened on Jan 10, 2018

View on GitHub
 (15 comments) (0 reactions) (0 assignees)JavaScript (152 forks)github user discovery
has fixhelp wanted

Repository metrics

Stars
 (1,055 stars)
PR merge metrics
 (PR metrics pending)

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.

Contributor guide