Skip to content

Commit

Permalink
Merge pull request #12 from hudl/FixQueryParameterDeletion
Browse files Browse the repository at this point in the history
Fix #11 - preserve query string when scrolling to top of document
  • Loading branch information
robhruska committed Nov 14, 2014
2 parents 9714428 + 90b3133 commit d85f306
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.9.3
2014-11-14

Fixes:

- #11: Preserve query string when scrolling to top of document (@robhruska)

## 0.9.2
2013-12-14

Expand All @@ -8,4 +15,4 @@ Fixes:
## 0.9.0
2013-05-16

Scrollomatic! (@robhruska)
Scrollomatic! (@robhruska)
2 changes: 1 addition & 1 deletion jquery.scrollomatic.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}

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

function scrollToHashTarget(hash, duration, suppressCallbacks) {
Expand Down
2 changes: 1 addition & 1 deletion scrollomatic.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrollomatic",
"version": "0.9.2",
"version": "0.9.3",

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

0 comments on commit d85f306

Please sign in to comment.