You can for example create a Location object as a wrapper for History API, and call Location.navigateTo(/post/${id}) inside a user action handler. E.g. handleClick(event) { event.preventDefault(); Location.navigateTo(event.target.href) }. Then you may want to add more features into it such as Location.goBack(), Location.navigateTo(url, { replace: true }) etc.