Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Now user is redirected to user profile page after login via CSNA link, My question is that is it possible to redirect user to previous page after login via CSNA link?
Comments
Comment #1
leetom CreditAttribution: leetom commented可以这样实现:
csna_callback中增加如下代码:
然后,在跳转的时候带一个dest的query 参数(不要叫destination,否则drupal直接跳过去了)。
我这代码改得比较乱,就不上patch了,实现起来不难。