Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't strip the hash off of the window path #51

Merged
merged 5 commits into from
Sep 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/DOMUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function replaceHashPath(path) {
}

export function getWindowPath() {
return window.location.pathname + window.location.search
return window.location.pathname + window.location.search + window.location.hash
}

export function go(n) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"bugs": "https://github.com/rackt/history/issues",
"scripts": {
"build": "babel ./modules -d lib --ignore '__tests__'",
"build": "babel ./modules --stage 0 --loose -d lib --ignore '__tests__'",
"build-umd": "NODE_ENV=production webpack modules/index.js umd/History.js",
"build-min": "NODE_ENV=production webpack -p modules/index.js umd/History.min.js",
"start": "webpack-dev-server -d --content-base ./ --history-api-fallback --inline modules/index.js",
Expand Down