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

fix: fix the pathOnly option #869

Merged
merged 3 commits into from
Sep 12, 2024
Merged

fix: fix the pathOnly option #869

merged 3 commits into from
Sep 12, 2024

Conversation

yuhao900914
Copy link
Contributor

@yuhao900914 yuhao900914 commented Sep 11, 2024

Summary

Related ticket

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

@yuhao900914 yuhao900914 requested a review from a team September 11, 2024 01:57
Copy link
Contributor

@Mercy811 Mercy811 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Alyssa for fixing it. pathOnly should track page views only when origin + pathname changes. URL() can throw an error if the string is not a valid URL string, but it seems fine here without a catch as the inputs are always location.href

@yuhao900914 yuhao900914 merged commit 2ac566e into main Sep 12, 2024
3 checks passed
@yuhao900914 yuhao900914 deleted the AMP-108564-path-only branch September 12, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants