Don't reload pages when clicking a link to the exact same URL as current URL. Fixes #29.

This commit is contained in:
Dillon Kearns 2020-01-04 21:54:38 -08:00
parent 74ecf47ba4
commit 7eaea5dace

View File

@ -367,7 +367,10 @@ update canonicalSiteUrl viewFunction pathKey onPageChangeMsg toJsPort document u
Browser.Internal url ->
let
navigatingToSamePage =
url.path == model.url.path
url.path
== model.url.path
&& url
/= model.url
in
if navigatingToSamePage then
-- this is a workaround for an issue with anchor fragment navigation