We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 958f36e + 3f4fca5 commit 3d0b3dfCopy full SHA for 3d0b3df
src/accountant/core.cljs
@@ -93,10 +93,10 @@
93
(= button 0)
94
(= host current-host)
95
(or (not port)
96
- (= (str port) (str current-port)))
97
- (not= current-relative-href relative-href)
+ (= (str port) (str current-port)))
98
(path-exists? path))
99
- (set-token! history relative-href title)
+ (when (not= current-relative-href relative-href) ;; do not add duplicate html5 history state
+ (set-token! history relative-href title))
100
(.preventDefault e))))))
101
102
(defonce nav-handler nil)
0 commit comments