Skip to content

Commit

Permalink
fix pageview path trailing slash are removed to enforce consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
negrel committed Feb 27, 2024
1 parent 2e40ed9 commit fd9da5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/event/pageview.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ func NewPageView(pvUrl *url.URL,
path := pvUrl.Path
if path == "" {
path = "/"
} else if path[len(path)-1] == '/' && len(path) > 1 {
path = path[:len(path)-1]
}

return PageView{
Expand Down

0 comments on commit fd9da5f

Please sign in to comment.