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

umami Automatically Collects Data Abnormally When Links Contain Chinese Characters #2470

Closed
zonewancheng opened this issue Jan 12, 2024 · 1 comment
Labels
bug Something isn't working fixed in dev Fixed in the dev branch

Comments

@zonewancheng
Copy link

Describe the Bug

Data Collection Categories:

1, Collection upon page link change
2, Collection upon page refresh

The first scenario, route link change collection example:

{
    "type": "event",
    "payload": {
        "website": "xxxx",
        "hostname": "xxx.com",
        "screen": "1512x982",
        "language": "zh-CN",
        "title": "VLDB Paper Recommendation | Research and Development Center",
        "url": "/blog/2023/09/11/VLDB论文推荐", // Note: At this point, the URL is not encoded

        "referrer": "/blog"
    }
}

The second scenario, page refresh collection example:

{
    "type": "event",
    "payload": {
        "website": "xxx",
        "hostname": "xxx.com",
        "screen": "1512x982",
        "language": "zh-CN",
        "title": "VLDB Paper Recommendation | Research and Development Center",
        "url": "/blog/2023/09/11/VLDB%E8%AE%BA%E6%96%87%E6%8E%A8%E8%8D%90", // Note: At this point, the URL is encoded in Chinese
        "referrer": ""
    }
}

Data collected in these two scenarios will not be stored together.

Database

MySQL

Relevant log output

I use `Docusaurus` to generate the site, and I integrate code using `docusaurus-plugin-umami`.

Thank you for your reply.

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

@franciscao633 franciscao633 added the bug Something isn't working label Jan 14, 2024
@mikecao mikecao added the fixed in dev Fixed in the dev branch label Jan 21, 2024
@mikecao mikecao closed this as completed Feb 28, 2024
@zonewancheng
Copy link
Author

This issue still exists in v2.10.2.

redirect to the page with special characters

url: "/blog/2023/09/11/VLDB%E8%AE%BA%E6%96%87%E6%8E%A8%E8%8D%90"

refresh the page with special characters

url: "/blog/2023/09/11/VLDB%25E8%25AE%25BA%25E6%2596%2587%25E6%258E%25A8%25E8%258D%2590"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in dev Fixed in the dev branch
Projects
None yet
Development

No branches or pull requests

3 participants