On the problem of jumping after Mini Program's authorization

recently, the company is using Mini Program to do activities. When the product details page is shared, the user clicks in. According to normal logic, he goes directly to the details page. But this user has not used this Mini Program. How to return to the product details page after authorization is completed first?
(expression is not very good for big brothers)

Jan.11,2022

in app.js, you can obtain the open page address path, to record first, and then jump to this address after authorization.


page is outside the link, record and then authorize access in the success function. If it is internal to Mini Program, you can jump to

directly.
Menu