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.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36f62-2c050.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36f62-2c050.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?