Skip to content

[Neat URL] support WeChat article URL (mp.weixin.qq.com) #172

Description

@zhaoruibing

Background:
When opening a WeChat article in its mobile app, the article URL contains lots of params. Below is an example.

URL with extra params
https://mp.weixin.qq.com/s?__biz=MjM5MDgwMzc4MA==&mid=2654885666&idx=1&sn=31ad074556695f474e4ce2a63a6c7b4e&chksm=bd75c5098a024c1fb8d6e610f9332ddc28efaf56b153954acdd327369722ffdb338681bb15eb&sessionid=1632515816&subscene=92&scene=0&clicktime=1632515827&ascene=1&devicetype=iOS15.0&version=18000d31&nettype=WIFI&lang=zh_CN&fontScale=106&exportkey=CXIaQTuRrJy2uezXhRaLIJU%3D&pass_ticket=9aYR7q%2B5uqCBHVamUsFGffLB0NOMx5gSNfiAoLRcJAdNCuhwDzvRFhijMRQ%2FJrzJ&wx_header=1


Here is a rule that removes the unnecessary params, without breaking it.
Proposed Rules
devicetype@mp.weixin.qq.com, version@mp.weixin.qq.com, nettype@mp.weixin.qq.com, lang@mp.weixin.qq.com, fontScale@mp.weixin.qq.com, exportkey@mp.weixin.qq.com, pass_ticket@mp.weixin.qq.com, wx_header@mp.weixin.qq.com, ascene@mp.weixin.qq.com, clicktime@mp.weixin.qq.com, scene@mp.weixin.qq.com, subscene@mp.weixin.qq.com, sessionid@mp.weixin.qq.com, chksm@mp.weixin.qq.com

Neat URL, after proposed rule applied:
https://mp.weixin.qq.com/s?__biz=MjM5MDgwMzc4MA%3D%3D&mid=2654885666&idx=1&sn=31ad074556695f474e4ce2a63a6c7b4e


WARN: I have only tested my use case and cannot be sure this applies to everyone.

Thanks for making NeatURL, it saved me lots of time.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions