Wechat sharing parameter setting is invalid

uses Wechat"s js-sdk, sharing link to add a parameter such as http://www.a.com/a.html?city=sh, but the entry page is http://www.a.com/a.html?city=bj,. The final share is not http://www.a.com/a.html?city=sh, but the latter link. The title and description of other settings are valid.
is there any solution to this problem?

Mar.03,2021

if you have already set the link parameter for sharing on the entry page, it is not possible to modify the link parameter again when city=sh (if possible, please tell the method, 3q~).
encountered a problem similar to yours before, but then I changed the jweixin.js file and used location.hash to share the same page with different products. can refer to

Menu