preactjs/preact-router

Problems with link anchors

Open

#260 创建于 2018年1月10日

在 GitHub 查看
 (15 评论) (0 反应) (0 负责人)JavaScript (152 fork)github user discovery
has fixhelp wanted

仓库指标

Star
 (1,055 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南