Skip to content

Commit d85f306

Browse files
committed
Merge pull request #12 from hudl/FixQueryParameterDeletion
Fix #11 - preserve query string when scrolling to top of document
2 parents 9714428 + 90b3133 commit d85f306

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 0.9.3
2+
2014-11-14
3+
4+
Fixes:
5+
6+
- #11: Preserve query string when scrolling to top of document (@robhruska)
7+
18
## 0.9.2
29
2013-12-14
310

@@ -8,4 +15,4 @@ Fixes:
815
## 0.9.0
916
2013-05-16
1017

11-
Scrollomatic! (@robhruska)
18+
Scrollomatic! (@robhruska)

jquery.scrollomatic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020

2121
function unsetUrlHash() {
22-
if ('replaceState' in window.history) window.history.replaceState('', document.title, window.location.pathname, window.location.search);
22+
if ('replaceState' in window.history) window.history.replaceState('', document.title, window.location.pathname + window.location.search);
2323
}
2424

2525
function scrollToHashTarget(hash, duration, suppressCallbacks) {

scrollomatic.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scrollomatic",
3-
"version": "0.9.2",
3+
"version": "0.9.3",
44

55
"title": "scrollomatic",
66
"description": "jQuery plugin for fragment scrolling with URL manipulation and support for fixed headers.",

0 commit comments

Comments
 (0)