diff --git a/src/util/stringify-href.js b/src/util/stringify-href.js index 2003e4de..049af322 100644 --- a/src/util/stringify-href.js +++ b/src/util/stringify-href.js @@ -6,6 +6,6 @@ export default (href: Href, basename: ?string) => { return `${basename || ''}${href}`; } - const { pathname, search } = href; - return `${basename || ''}${pathname}${search || ''}`; + const { pathname, search, hash } = href; + return `${basename || ''}${pathname}${hash || ''}${search || ''}`; };