Skip to content

Commit

Permalink
fix: exclude force from key
Browse files Browse the repository at this point in the history
closes #37
  • Loading branch information
Kikobeats committed Jan 22, 2020
1 parent 0208387 commit 2fdb19f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ function isEmpty (value) {
const _getKey = ({ req }) => {
const url = new URL(req.url, 'http://localhost').toString()
const { origin } = new URL(url)
const baseKey = normalizeUrl(url)
const baseKey = normalizeUrl(url, {
removeQueryParameters: ['force', /^utm_\w+/i]
})
return baseKey.replace(origin, '').replace('/?', '')
}

Expand Down

0 comments on commit 2fdb19f

Please sign in to comment.