-
Notifications
You must be signed in to change notification settings - Fork 34
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
Added visit page view #117
base: master
Are you sure you want to change the base?
Conversation
56cdd0d
to
9f4a015
Compare
@@ -137,7 +137,7 @@ def add_page_visit(self, page): | |||
visit_count.append({ | |||
'slug': page.slug, | |||
'id': page.pk, | |||
'path': self.request.path, | |||
'path': path or self.request.path, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm now actually wondering if using self.request.path for fallback here is the correct idea. Perhaps we should always use the full path based on the passed page ?
096e18d
to
03f18d4
Compare
Fixes #74 Allows frontend users to submit page views and retrieve segments while behind a cache or CDN.
03f18d4
to
2ae115c
Compare
Codecov Report
@@ Coverage Diff @@
## master #117 +/- ##
=========================================
Coverage ? 62.04%
=========================================
Files ? 38
Lines ? 3183
Branches ? 0
=========================================
Hits ? 1975
Misses ? 1208
Partials ? 0
Continue to review full report at Codecov.
|
Fixes #74
Allows frontend users to submit page views and retrieve segment info while behind a cache or CDN.