mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-01 07:45:22 +03:00
Don't reload pages when clicking a link to the exact same URL as current URL. Fixes #29.
This commit is contained in:
parent
74ecf47ba4
commit
7eaea5dace
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user