Commit 142ad75
committed
don't push state with same url
Currently navigating through documentation sometimes leads to duplicate
history entries, also when navigating back to documentation page either
from another documentation page or from different site, pushState not
only add additional entry, but also removes all history in front.
Ensuring that pushState is done only if new url is not equal current
resolves this. I see only one quirky downside - it is not possible to
create multiple history entries by navigating to same documentation
page.1 parent 49d4d32 commit 142ad75
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| |||
0 commit comments